Skip to content

Commit

Permalink
Merge pull request #616 from vinsewah/vc-add-show-master-event-to-fra…
Browse files Browse the repository at this point in the history
…meback-controller

Emit showMaster event when the back navigation is triggered in Frameb…
  • Loading branch information
gigabo authored Aug 23, 2016
2 parents 4196b43 + 0923eb9 commit 9150c84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-server/core/FramebackController.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,15 @@ class FramebackController extends EventEmitter {

hideMaster(){
contentDiv().style.display = 'none';
this.emit('hideMaster');
}

showMaster(){
contentDiv().style.display = 'block';
document.title = this.masterTitle;
document.activeElement.blur();
window.focus();
this.emit('showMaster');
}

navigateFrame(request){
Expand Down

0 comments on commit 9150c84

Please sign in to comment.