Skip to content

Commit

Permalink
fix(VisibilityService): raise hideEvent when manager closes
Browse files Browse the repository at this point in the history
  • Loading branch information
speigg committed Apr 21, 2017
1 parent 59964cf commit ed44fb0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/visibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ export class VisibilityService {
else this.hideEvent.raiseEvent(undefined)
}
}

sessionService.manager.closeEvent.addEventListener(()=>{
if (this._isVisible) {
this._isVisible = false;
this.hideEvent.raiseEvent(undefined);
}
})
}

}
Expand Down

0 comments on commit ed44fb0

Please sign in to comment.