Skip to content

Commit

Permalink
Revert "Fix IE leaks caused by ._fireEvent circular reference"
Browse files Browse the repository at this point in the history
This reverts commit 4c68d39.
  • Loading branch information
kentaromiura committed Apr 12, 2012
1 parent 4c68d39 commit 14f5deb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Source/Element/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},

Expand Down Expand Up @@ -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>*/
Expand Down

0 comments on commit 14f5deb

Please sign in to comment.