Skip to content

Commit

Permalink
Merge pull request #68 from asudoh/WidgetList
Browse files Browse the repository at this point in the history
Fix reference to _self, the bug also affected 1.8.x.
  • Loading branch information
edchat committed Nov 16, 2012
2 parents abcc272 + f79e511 commit eea6907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WidgetList.js
Expand Up @@ -214,7 +214,7 @@ define([
mids = array.filter(array.map(types, function(type){ return lang.getObject(type) ? undef : type; }), function(mid){ return mid !== undef; }),
_self = this;
require(mids, function(){
if(!self._beingDestroyed){
if(!_self._beingDestroyed){
createAndWatch.apply(this, array.map(types, function(type){ return lang.getObject(type) || require(type); }));
}
});
Expand Down

0 comments on commit eea6907

Please sign in to comment.