         $div = $('<div/>')
         if contents?
           if _.isFunction contents
-            return @nested_item $div, contents
+            return @nested_item contents
           else
             $div.append contents
         @add_rendered $div

        nested_context = _.extend create_new_run_context(@), overrides

      detached:  (fn, args) ->
        $item = $ "<div/>"
        nested_context = @create_nested_renderable_context $item
        nested_context.apply_to fn, args
        nested_context.renderable_list_builder

      # creates a nested context, adds it to the renderable list, and applies the function to it
      nested_item: ($item, fn, args...) ->
        nested_context = @create_nested_renderable_context $item
        @add_renderable nested_context.renderable_list_builder
        nested_context.apply_to fn, args


          else
            "#{ms} ms"

        promise = @nested_item fn

        asyncs.push 1
        promise.finally =>
          asyncs.push -1
