 
   wireOutlets: (view) ->
     for element in view[0].querySelectorAll('[outlet]')
+      outlet = element.getAttribute('outlet')
       element = $(element)
-      outlet = element.attr('outlet')
       view[outlet] = element
-      element.attr('outlet', null)
+      element[0].removeAttribute('outlet', null)
 
     undefined
 

    jQuery.data(@[0], 'view', this)
    for element in @[0].getElementsByTagName('*')
      jQuery.data(element, 'view', this)
    @attr('callAttachHooks', true)
    step(this) for step in postProcessingSteps
    @initialize?(args...)


      selector = "[#{eventName}]"
      for element in view[0].querySelectorAll(selector)
        do (element) ->
          methodName = element.getAttribute(eventName)
          element = $(element)
          element.on eventName, (event) -> view[methodName](event, element)

      if view[0].webkitMatchesSelector(selector)
        methodName = view[0].getAttribute(eventName)
        do (methodName) ->
          view.on eventName, (event) -> view[methodName](event, view)

