update comment

This commit is contained in:
凌恒 2015-04-01 23:59:43 +08:00
parent 54a74d95bb
commit 6094ebbc39
1 changed files with 1 additions and 3 deletions

View File

@ -33,9 +33,7 @@ function insertChildAt(parentNode, childNode, index) {
// browsers so we must replace it with `null`.
// fix render order error in safari
// IE8 can't use `item` when childNodes is empty or dynamic insert.
// Because index out of list
// But read is well after insert.
// IE8 will throw error when index out of list size.
var beforeChild = index >= parentNode.childNodes.length ?
null :
parentNode.childNodes.item(index);