diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-24 12:00:03 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-24 12:00:03 -0400 |
commit | eaadcc0eebcd6ea45523e19f79b042dc0d6a30bb (patch) | |
tree | 9c9e7703a58ca228d82a2c99a3e9106a4659415b /ui/jquery.ui.widget.js | |
parent | 5f9d5c54c31546977792f4493b419f6c72fcc93e (diff) | |
download | jquery-ui-eaadcc0eebcd6ea45523e19f79b042dc0d6a30bb.tar.gz jquery-ui-eaadcc0eebcd6ea45523e19f79b042dc0d6a30bb.zip |
Widget: Bind the remove event to the element, not the .widget() element.
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r-- | ui/jquery.ui.widget.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index a6eae6580..f4805fb75 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -237,7 +237,7 @@ $.Widget.prototype = { // TODO remove dual storage $.data( element, this.widgetName, this ); $.data( element, this.widgetFullName, this ); - this._on({ + this._on( this.element, { remove: function( event ) { if ( event.target === element ) { this.destroy(); |