Skip to content
Browse files

added back object cleanup for explorer

  • Loading branch information...
1 parent 6a0decd commit e4f9009e03cecfffb16a1bab004dccd187d058f0 @kamicane kamicane committed with kassens Oct 9, 2008
Showing with 6 additions and 0 deletions.
  1. +6 −0 Source/Element/Element.js
View
6 Source/Element/Element.js
@@ -218,6 +218,12 @@ var clean = function(item){
if (Browser.Engine.trident){
if (item.clearAttributes) item.clearAttributes();
else if (item.removeEvents) item.removeEvents();
+ if ((/object/i).test(item.tagName)){
+ for (var p in item){
+ if (typeof item[p] == 'function') item[p] = $empty;
+ }
+ Element.dispose(item);
+ }
}
var uid = item.uid;
if (!uid) return;

0 comments on commit e4f9009

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