Revert "Removed not longer needed bindings."

This reverts commit eb9d32e2b7.
This commit is contained in:
Martin Edenhofer 2015-05-12 13:04:16 +02:00
parent c9608cdc00
commit 0192318219

View file

@ -29,6 +29,22 @@ class _collectionSingleton extends Spine.Module
constructor: (@args) ->
# add trigger - bind new events
App.Event.bind 'loadAssets', (data) =>
if !data
@log 'error', 'loadAssets:trigger, got no data, cant load assets'
return
@loadAssets( data )
# add trigger - bind new events
App.Event.bind 'resetCollection', (data) =>
if !data
@log 'error', 'resetCollection:trigger, got no data, cant for collections'
return
@resetCollections( data )
# find collections to load
@_loadObjectsFromLocalStore()