         collectionEvents:
             'sort': 'sortChildren'
             'change': 'change'
+            'reset': 'toggleToolbar'
 
         events:
             'change [name=sort]': 'sortBy'

            'click [name=invert]': 'invertSelection'

        ui:
            sortOrder: '[name=sort]'
            filterInput: '[name=filter]'
            invertButton: '[name=invert]'


        sortBy: (event) ->
            @collection.sortModelsBy(@ui.sortOrder.val())

        toggleToolbar: ->
            # Not yet rendered, this will be called again in onRender
            if not @_isRendered then return
            @ui.toolbar.toggle(@collection.length >= @options.minValuesForToolbar)

        onRender: ->
            # Hide toolbar by default, this will be shown only if the
            # data size exceeds the threshold
            @toggleToolbar()

        filterBars: (event) ->
            event.stopPropagation()
