prevent nonsensical IE error
This commit is contained in:
parent
0ec4ed451f
commit
f6d436da68
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ var m = (function app(window, undefined) {
|
|||
clear(cached.nodes, cached);
|
||||
nodes = [$document.createTextNode(data)]
|
||||
}
|
||||
parentElement.insertBefore(nodes[0], parentElement.childNodes[index] || null);
|
||||
try {parentElement.insertBefore(nodes[0], parentElement.childNodes[index] || null);} catch (e) {} //IE erroneously throws error when appending an empty text node after a null
|
||||
nodes[0].nodeValue = data
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue