Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

This reverts commit 4c68d39.
  • Loading branch information...
commit 14f5deb437a9db8e2e28e04b0d0eb8ce0451d617 1 parent 4c68d39
Cristian Carlesso authored

Showing 1 changed file with 1 addition and 10 deletions. Show diff stats Hide diff stats

  1. +1 10 Source/Element/Element.js
11 Source/Element/Element.js
@@ -800,7 +800,6 @@ var formProps = {input: 'checked', option: 'selected', textarea: 'value'};
800 800 Element.implement({
801 801
802 802 destroy: function(){
803   - if(! this.getElementsByTagName) return null; //textNode
804 803 var children = clean(this).getElementsByTagName('*');
805 804 Array.each(children, clean);
806 805 Element.dispose(this);
@@ -808,12 +807,11 @@ Element.implement({
808 807 },
809 808
810 809 empty: function(){
811   - Array.from(this.childNodes).each(Element.destroy);
  810 + Array.from(this.childNodes).each(Element.dispose);
812 811 return this;
813 812 },
814 813
815 814 dispose: function(){
816   - this._fireEvent = null;
817 815 return (this.parentNode) ? this.parentNode.removeChild(this) : this;
818 816 },
819 817
@@ -951,13 +949,6 @@ Element.Properties.html = {
951 949
952 950 };
953 951
954   -// fix for IE leak on Element.set('text','')
955   -Element.Properties.text = {
956   - set: function(text){
957   - Element.prototype.empty.call(this).setProperty('text',text);
958   - }
959   -}
960   -
961 952 var supportsHTML5Elements, supportsTableInnerHTML, supportsTRInnerHTML;
962 953
963 954 /*<ltIE9>*/

0 comments on commit 14f5deb

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