 
     tpl.on 'replace', (el, tag) ->
         delay.call el, ->
-            nextAnimationFrame ->
+            animation.push ->
                 return if removed el
                 _dom = tag._dom ? tag
                 return unless _dom?.length > 0


    tpl.on 'raw', (el, html) ->
        delay.call el, ->
            nextAnimationFrame ->
                el._dom?.innerHTML = html

    tpl.on 'show', (el) ->

            if parent is tpl.xml
                parent._dom.push(el._dom)
            else
                animation.push ->
                    parent._dom?.appendChild(el._dom)

    tpl.on 'close', (el) ->
