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) ->
data[name] = item
itemEl = el.cloneNode true
previous = binding.iterated[binding.iterated.length - 1] or binding.marker
binding.marker.parentNode.insertBefore itemEl, previous.nextSibling
binding.marker.parentNode.insertBefore itemEl, previous.nextSibling ? null
binding.iterated.push
el: itemEl
......