},
click: function( event ) {
event.preventDefault();
- if (this.open) {
+ if (this.isOpen) {
// let it propagate to close
return;
}
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 );
}
}
// 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 );
},
this.options.trigger.attr("tabindex", 0);
- this.open = false;
+ this.isOpen = false;
this._trigger( "close", event );
}