 
         setCollection: (collection)->
             @collection = collection
-
+            _.each _.union(@inlineActions, @batchActions), (action) =>
+                action.setCollection @collection if action?
             # Bind events to collection.
             @collection.on "add", @addItem, this
             @collection.on "reset", @addAllItems, this

                    if @$el.find(document.activeElement).length is 0
                        @$el.removeClass "focussed"
                    @focussed = false
                    @collection.trigger "focusout"
                , 10
        
        plural : ->

            unless @focussed
                @focussed = true
            @$el.addClass "focussed"
            @collection?.trigger "focusin"
    
        focusout : (event) ->
            if @focussed
