Browse files

Revert "Fix IE leaks caused by ._fireEvent circular reference"

This reverts commit 4c68d39.
  • Loading branch information...
1 parent 4c68d39 commit 14f5deb437a9db8e2e28e04b0d0eb8ce0451d617 @kentaromiura committed Apr 12, 2012
Showing with 1 addition and 10 deletions.
  1. +1 −10 Source/Element/Element.js
View
11 Source/Element/Element.js
@@ -800,20 +800,18 @@ var formProps = {input: 'checked', option: 'selected', textarea: 'value'};
Element.implement({
destroy: function(){
- if(! this.getElementsByTagName) return null; //textNode
var children = clean(this).getElementsByTagName('*');
Array.each(children, clean);
Element.dispose(this);
return null;
},
empty: function(){
- Array.from(this.childNodes).each(Element.destroy);
+ Array.from(this.childNodes).each(Element.dispose);
return this;
},
dispose: function(){
- this._fireEvent = null;
return (this.parentNode) ? this.parentNode.removeChild(this) : this;
},
@@ -951,13 +949,6 @@ Element.Properties.html = {
};
-// fix for IE leak on Element.set('text','')
-Element.Properties.text = {
- set: function(text){
- Element.prototype.empty.call(this).setProperty('text',text);
- }
-}
-
var supportsHTML5Elements, supportsTableInnerHTML, supportsTRInnerHTML;
/*<ltIE9>*/

0 comments on commit 14f5deb

Please sign in to comment.