 class Batman.DOM.ViewBinding extends Batman.DOM.AbstractBinding
   constructor: ->
     super
-    @renderer.prevent('rendered')
-    @node.removeAttribute "data-view"
+    @renderer.prevent 'rendered'
+    @node.removeAttribute 'data-view'
 
   dataChange: (viewClassOrInstance) ->
     return unless viewClassOrInstance?

    Batman.DOM.didRemoveNode(node)

  appendChild: $appendChild = (parent, child, args...) ->
    Batman.data(child, 'show')?.apply(child, args)
    parent.appendChild(child)

  insertBefore: $insertBefore = (parentNode, newNode, referenceNode = null) ->
    if !referenceNode or parentNode.childNodes.length <= 0

        node: @node
        context: @renderContext

    Batman.data @node, 'view', @view

    @view.on 'ready', =>
      @view.awakeFromHTML? node
      @renderer.allowAndFire 'rendered'

    @die()

