Permalink
Browse files

bug fix

  • Loading branch information...
1 parent d2e603d commit d02ac442f46af2a7f14671bbefad1d100b9b5bd6 @Y-Kamata committed Nov 2, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.widget.js
View
@@ -197,8 +197,8 @@ $.Widget.prototype = {
this._bind({ remove: "destroy" });
// bugfix memory leak http://bugs.jqueryui.com/ticket/7808
this.element.bind( "remove." + this.widgetName,
- {widgetName: this.widgetName},
- this.__destroy);
+ {widgetName: this.widgetName},
+ this.__destroy);
this.document = $( element.ownerDocument );
this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
@@ -209,7 +209,7 @@ $.Widget.prototype = {
this._init();
},
// bugfix memory leak http://bugs.jqueryui.com/ticket/7808
- $.Widget.prototype.__destroy = function(e){
+ __destroy = function(e){
var self = $(this).data(e.data.widgetName);
self.destroy();
},

0 comments on commit d02ac44

Please sign in to comment.