 
     link_events = @events || {}
 
-    _.each @links, (link, sel) ->
-
-      _.each @$(sel), (el) ->
+    _.eachR @, @links, (link, sel) ->
+
+      _.eachR @, @$(sel), (el) ->
 
         state = link[0]
         data = null

    data ||= @
    tpl.render(data)

  create_partial: (clazz, data) ->
    data ||= {}
    data.app = @app

    v.render()
    return v

  # DO NOT USE - will break event delegation!
  #
  # Create a partial view and return the rendered HTML
  #
  # @param [Class] clazz      class name of view to render
  # @param [Object] data      context data for partial
  # @param [String] selector  optional CSS selector into which the partial view will be rendered
  #
  # @return [String] rendered HTML string
  render_partial: (clazz, data, selector) ->
    return @partial(clazz, data, selector).$el.html()

  # DO NOT USE - will break event delegation!
  # currently unused helper
  partial_html: (tpl, data) ->
    if _.isString(tpl)
      tpl = new Template(@jst(tpl))
