ie compatibility: can't treat childNodes as a normal collection with slice.
This commit is contained in:
parent
37272e135b
commit
7a2ee5ad18
|
@ -44,7 +44,12 @@
|
||||||
var domOpenF =
|
var domOpenF =
|
||||||
// To go down, just take the children.
|
// To go down, just take the children.
|
||||||
function(n) {
|
function(n) {
|
||||||
return [].slice.call(n.childNodes, 0);
|
var i;
|
||||||
|
var result = [];
|
||||||
|
for (i = 0; i < n.childNodes.length; i++) {
|
||||||
|
result.push(n.childNodes[i]);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
};
|
};
|
||||||
var domCloseF =
|
var domCloseF =
|
||||||
// To go back up, take the node, do a shallow cloning, and replace the children.
|
// To go back up, take the node, do a shallow cloning, and replace the children.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user