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

Commit

Permalink
Webkit doesn't seem to trigger 'focus' event on document, but rather …
Browse files Browse the repository at this point in the history
…the window.
  • Loading branch information
cheeaun committed Mar 19, 2009
1 parent 552df9a commit c84234d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/MooEditable/MooEditable.Group.js
Expand Up @@ -53,7 +53,7 @@ MooEditable.Group.Item = new Class({
this.group.activeEditor = this;
}.bind(this));
// safari doesnt fire onfocus event, so make it onclick
this.doc.addEvent((Browser.Engine.webkit) ? 'click' : 'focus', function(){
this.win.addEvent('focus', function(){
this.group.activeEditor = this;
}.bind(this));
}
Expand Down
2 changes: 1 addition & 1 deletion Source/MooEditable/MooEditable.js
Expand Up @@ -220,7 +220,7 @@ var MooEditable = new Class({
self.execute('styleWithCSS', false, false);
self.doc.removeEvent('focus', styleCSS);
};
this.doc.addEvent('focus', styleCSS);
this.win.addEvent('focus', styleCSS);
}

if (this.options.toolbar){
Expand Down

0 comments on commit c84234d

Please sign in to comment.