Permalink
Browse files

Fix IE8 addEvents bug

  • Loading branch information...
1 parent d01be03 commit 9cacf3f9f3f987d1dffbde89eeb03ab6fdc999c5 @galetahub committed Jan 11, 2011
Showing with 3 additions and 9 deletions.
  1. +3 −9 lib/generators/ckeditor/base/templates/ckeditor/swfupload/fileprogress.js
@@ -115,15 +115,9 @@ var Button = new Class({
this.element.appendChild(table);
- this.element.addEvents({
- 'mouseover': function(){
- this.className = "TB_Button_Off_Over"
- },
- 'mouseout': function(){
- this.className = "TB_Button"
- },
- 'click': this.callback.bind(this)
- });
+ this.element.onclick = this.callback.bind(this);
+ this.element.onmouseover = function addButtonHover() { this.className = "TB_Button_Off_Over"; }
+ this.element.onmouseout = function removeButtonHover() { this.className = "TB_Button"; }
}
});

0 comments on commit 9cacf3f

Please sign in to comment.