self = this;
this._bind({
keyup: this.keyup,
- keydown: this.keydown
+ keydown: "keydown"
});
},
keyup: function( event ) {
self = this;
this._bind( this.element.find( "strong" ), {
keyup: this.keyup,
- keydown: this.keydown
+ keydown: "keydown"
});
},
keyup: function( event ) {
options );
this.bindings = $();
-
- var self = this;
- this.element.bind( "remove." + this.widgetName, function() {
- self.destroy();
- });
+ this._bind({ remove: "destroy" });
this._create();
this._trigger( "create" );
if ( instance.options.disabled ) {
return;
}
- return handler.apply( instance, arguments );
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
+ .apply( instance, arguments );
});
});
},