Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed undefined this.win bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Jan 31, 2010
1 parent 52376d4 commit bbc10b6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Source/MooEditable/MooEditable.Group.js
Expand Up @@ -57,13 +57,16 @@ MooEditable.Group.Item = new Class({
Extends: MooEditable,

initialize: function(textarea, group, options){
var self = this;
this.group = group;
this.parent(textarea, options);
var focus = function(){
this.group.activeEditor = this;
}.bind(this);
this.textarea.addEvent('focus', focus);
this.win.addEvent('focus', focus);
this.addEvent('attach', function(){
var focus = function(){
self.group.activeEditor = self;
};
self.textarea.addEvent('focus', focus);
self.win.addEvent('focus', focus);
});
}

});

0 comments on commit bbc10b6

Please sign in to comment.