Commit d915a7f5 authored by James Burke's avatar James Burke

Fixes #3588. Use new dojo._destroyElement call instead of removeChild

git-svn-id: http://svn.dojotoolkit.org/src/dojo/trunk@9417 560b804f-0ae3-0310-86f3-f6aa0a117693
parent d5258c73
......@@ -291,14 +291,12 @@ dojo.io.iframe = {
for(var j = 0; j < fNode.childNodes.length; j++){
var chNode = fNode.childNodes[j];
if(chNode.name == key){
var pNode = chNode.parentNode;
pNode.removeChild(chNode);
dojo._destroyElement(chNode);
break;
}
}
}else{
var input = fNode[key];
fNode.removeChild(input);
dojo._destroyElement(fNode[key]);
fNode[key] = null;
}
}
......
......@@ -43,14 +43,7 @@ dojo.io.script = {
remove: function(/*String*/id){
//summary: removes the script element with the given id.
//FIXME: Convert to destroyNode function if/when it exists?
var node = dojo.byId(id);
if(node && node.parentNode){
node.parentNode.removeChild(node);
}
if(dojo.isIE){
node.outerHTML=''; //prevent ugly IE mem leak associated with Node.removeChild (ticket #1727)
}
dojo._destroyElement(dojo.byId(id));
},
_makeScriptDeferred: function(/*Object*/args){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment