3bd7c34d by Jason Lee

IE8 insertBefore fix

second argument must be a valid node or null. from http://stackoverflow.com/questions/9377887/ie-doesnt-support-insertbefore
1 parent 8337496b
...@@ -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
......