Skip to content

Commit

Permalink
Merge pull request #294 from ArcBees/jd_fix_root_presenter
Browse files Browse the repository at this point in the history
Avoid that the RootPresenter.unlockScreen()  throws a javascript exception
  • Loading branch information
jDramaix committed Aug 8, 2013
2 parents 6cae409 + 0659fda commit 43d9207
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ public void lockScreen() {
}

public void unlockScreen() {
ensureGlass();
Document.get().getBody().removeChild(glass);
if (glass != null) {
glass.removeFromParent();
}
}

public void ensureGlass() {
Expand All @@ -145,7 +146,7 @@ public void ensureGlass() {

/**
* Creates a proxy class for a presenter that can contain tabs.
*
*
* @param eventBus
* The event bus.
*/
Expand Down

0 comments on commit 43d9207

Please sign in to comment.