Permalink
Browse files

use existing page ref

  • Loading branch information...
1 parent a7d9182 commit d7f35ef2b5255cd75d8599c18b583021850be749 @johnbender johnbender committed Aug 29, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 js/widgets/popup.js
View
@@ -540,10 +540,8 @@ define( [ "jquery",
.removeClass( "ui-selectmenu-hidden" )
.offset( coords );
-// if ( this.options.overlayTheme !== null ) {
- // TODO: The fixed toolbars really only need to be hidden if the overlay has a background. Should this be conditional?
- this.element.closest( ".ui-page" ).addClass( "ui-popup-open" );
-// }
+ // TODO: The fixed toolbars really only need to be hidden if the overlay has a background. Should this be conditional?
+ this._page.addClass( "ui-popup-open" );
this._animate({
additionalCondition: true,
@@ -589,7 +587,7 @@ define( [ "jquery",
_close: function() {
this._ui.container.removeClass( "ui-popup-active" );
- this.element.closest( ".ui-page" ).removeClass( "ui-popup-open" );
+ this._page.removeClass( "ui-popup-open" );
this._isOpen = false;

0 comments on commit d7f35ef

Please sign in to comment.