IE8 insertBefore fix
second argument must be a valid node or null. from http://stackoverflow.com/questions/9377887/ie-doesnt-support-insertbefore
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -278,7 +278,7 @@ iterationBinding = (name) -> (el, collection, binding) -> | ... | @@ -278,7 +278,7 @@ iterationBinding = (name) -> (el, collection, binding) -> |
278 | data[name] = item | 278 | data[name] = item |
279 | itemEl = el.cloneNode true | 279 | itemEl = el.cloneNode true |
280 | previous = binding.iterated[binding.iterated.length - 1] or binding.marker | 280 | previous = binding.iterated[binding.iterated.length - 1] or binding.marker |
281 | binding.marker.parentNode.insertBefore itemEl, previous.nextSibling | 281 | binding.marker.parentNode.insertBefore itemEl, previous.nextSibling ? null |
282 | 282 | ||
283 | binding.iterated.push | 283 | binding.iterated.push |
284 | el: itemEl | 284 | el: itemEl | ... | ... |
-
Please register or sign in to post a comment