Skip to content

Commit

Permalink
modified _createWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Kamata committed Nov 2, 2011
1 parent a2df8e8 commit 40ae50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.widget.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ $.Widget.prototype = {


if ( element !== this ) { if ( element !== this ) {
$.data( element, this.widgetName, this ); $.data( element, this.widgetName, this );
this._bind({ remove: "destroy" });
// bugfix memory leak http://bugs.jqueryui.com/ticket/7808 // bugfix memory leak http://bugs.jqueryui.com/ticket/7808
//this._bind({ remove: "destroy" });
this.element.bind( "remove." + this.widgetName, this.element.bind( "remove." + this.widgetName,
{widgetName: this.widgetName}, {widgetName: this.widgetName},
this.__destroy); this.__destroy);
Expand Down

0 comments on commit 40ae50b

Please sign in to comment.