parent: this.element.parent(),
index: this.element.parent().children().index( this.element )
};
- // TODO don't overwrite options
this.options.title = this.options.title || this.originalTitle;
var that = this,
options = this.options,
return;
}
- // TODO fix yoda-if
- if ( false === this._trigger( "beforeClose", event ) ) {
+ if ( this._trigger( "beforeClose", event ) === false ) {
return;
}
$( this.document[ 0 ].activeElement ).blur();
}
- // TODO shouldn't _hide restore `this` to the instance? would also help tooltip
this._hide( this.uiDialog, this.options.hide, function() {
that._trigger( "close", event );
});