]> source.dussan.org Git - jquery-ui.git/commitdiff
Popup: Rename open flag to isOpen to avoid name conflict with open method.
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 5 May 2011 12:20:56 +0000 (14:20 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 5 May 2011 12:21:26 +0000 (14:21 +0200)
tests/visual/menu/popup.js

index dc81b694c6dc26636877d4347b5dba1c06194401..08088c994bf30550180fe21fb5ce6ac129787527 100644 (file)
@@ -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 );
        }