diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-05 14:20:56 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-05 14:21:26 +0200 |
commit | 993d37af1d04d586b8b977daf0da3588d63714d9 (patch) | |
tree | bea7462a4c33d3a15a2b9cfebc332ebe942c0e74 /tests/visual/menu | |
parent | 116acb4cb28c4a091547648132316b7f8e9e6072 (diff) | |
download | jquery-ui-993d37af1d04d586b8b977daf0da3588d63714d9.tar.gz jquery-ui-993d37af1d04d586b8b977daf0da3588d63714d9.zip |
Popup: Rename open flag to isOpen to avoid name conflict with open method.
Diffstat (limited to 'tests/visual/menu')
-rw-r--r-- | tests/visual/menu/popup.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/visual/menu/popup.js b/tests/visual/menu/popup.js index dc81b694c..08088c994 100644 --- a/tests/visual/menu/popup.js +++ b/tests/visual/menu/popup.js @@ -45,7 +45,7 @@ $.widget( "ui.popup", { }, click: function( event ) { event.preventDefault(); - if (this.open) { + if (this.isOpen) { // let it propagate to close return; } @@ -75,7 +75,7 @@ $.widget( "ui.popup", { this._bind(document, { click: function( event ) { - if (this.open && !$(event.target).closest(".ui-popup").length) { + if (this.isOpen && !$(event.target).closest(".ui-popup").length) { this.close( event ); } } @@ -116,7 +116,7 @@ $.widget( "ui.popup", { // take trigger out of tab order to allow shift-tab to skip trigger this.options.trigger.attr("tabindex", -1); - this.open = true; + this.isOpen = true; this._trigger( "open", event ); }, @@ -128,7 +128,7 @@ $.widget( "ui.popup", { this.options.trigger.attr("tabindex", 0); - this.open = false; + this.isOpen = false; this._trigger( "close", event ); } |