Permalink
Browse files

Merge branch 'fix-2163-regression-ie7-crash'

  • Loading branch information...
2 parents 70b402e + 9eb56c6 commit be7204ab39ed776b90fcd88bae747d2afbeb84e6 @arian arian committed Jan 9, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Source/Element/Element.js
@@ -262,7 +262,11 @@ Document.implement({
element: function(el, nocash){
Slick.uidOf(el);
if (!nocash && !el.$family && !(/^(?:object|embed)$/i).test(el.tagName)){
- el._fireEvent = el.fireEvent;
+ var fireEvent = el.fireEvent;
+ // wrapping needed in IE7, or else crash
+ el._fireEvent = function(type, event){
+ return fireEvent(type, event);
+ };
Object.append(el, Element.Prototype);
}
return el;

0 comments on commit be7204a

Please sign in to comment.