Skip to content
Browse files

Merge pull request #2138 from ibolmo/fix-2085-ie8-specs-fail

Fix #2085 ie8 specs fail
  • Loading branch information...
2 parents d2c86de + b2eaa7a commit 3067a8779a7c3efda1ec71b2a623661343f61cda @cpojer cpojer committed Nov 27, 2011
Showing with 12 additions and 2 deletions.
  1. +11 −1 Source/Element/Element.js
  2. +1 −1 Specs
View
12 Source/Element/Element.js
@@ -41,7 +41,16 @@ var Element = function(tag, props){
return document.newElement(tag, props);
};
-if (Browser.Element) Element.prototype = Browser.Element.prototype;
+
+if (Browser.Element){
+ Element.prototype = Browser.Element.prototype;
+ // IE8 and IE9 require the wrapping.
+ Element.prototype._fireEvent = (function(fireEvent){
+ return function(type, event){
+ return fireEvent.call(this, type, event);
+ };
+ })(Element.prototype.fireEvent);
+}
new Type('Element', Element).mirror(function(name){
if (Array.prototype[name]) return;
@@ -248,6 +257,7 @@ Document.implement({
element: function(el, nocash){
$uid(el);
if (!nocash && !el.$family && !(/^(?:object|embed)$/i).test(el.tagName)){
+ el._fireEvent = el.fireEvent;
Object.append(el, Element.Prototype);
}
return el;
2 Specs
@@ -1 +1 @@
-Subproject commit 2fb8412a803f4cc14f39e8e3c371ca98d0ebf24a
+Subproject commit b35cc9fb7ef8c067a733684378584496a88de3c7

0 comments on commit 3067a87

Please sign in to comment.
Something went wrong with that request. Please try again.