sideMenuController: fixed undefined exception when using just one side menu

This commit is contained in:
Travis Russi
2013-11-23 20:45:07 -08:00
parent 951f40deec
commit 160c5f90a6

View File

@@ -149,9 +149,9 @@
this._rightShowing = false;
// Push the z-index of the right menu down
this.right && this.right.pushDown();
this.right && this.right.pushDown && this.right.pushDown();
// Bring the z-index of the left menu up
this.left && this.left.bringUp();
this.left && this.left.bringUp && this.left.bringUp();
} else {
this._rightShowing = true;
this._leftShowing = false;