Revert "Removed not longer needed bindings."
This reverts commit eb9d32e2b7
.
This commit is contained in:
parent
c9608cdc00
commit
0192318219
1 changed files with 16 additions and 0 deletions
|
@ -29,6 +29,22 @@ class _collectionSingleton extends Spine.Module
|
||||||
|
|
||||||
constructor: (@args) ->
|
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
|
# find collections to load
|
||||||
@_loadObjectsFromLocalStore()
|
@_loadObjectsFromLocalStore()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue