diff --git a/app/assets/javascripts/app/lib/app_post/auth.js.coffee b/app/assets/javascripts/app/lib/app_post/auth.js.coffee index 1ea34cd59..081517825 100644 --- a/app/assets/javascripts/app/lib/app_post/auth.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/auth.js.coffee @@ -88,7 +88,7 @@ class App.Auth # refresh default collections if data.collections - App.Event.trigger 'resetCollection', data.collections + App.Collection.resetCollections( data.collections ) # trigger auth ok with new session data App.Event.trigger( 'auth', data.session ) diff --git a/app/assets/javascripts/app/lib/app_post/collection.js.coffee b/app/assets/javascripts/app/lib/app_post/collection.js.coffee index b715ebb5e..36ab85d26 100644 --- a/app/assets/javascripts/app/lib/app_post/collection.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/collection.js.coffee @@ -19,10 +19,10 @@ class App.Collection _instance ?= new _collectionSingleton _instance.reset( args ) - @resetCollection: ( args ) -> + @resetCollections: ( args ) -> if _instance == undefined _instance ?= new _collectionSingleton - _instance.resetCollection( args ) + _instance.resetCollections( args ) class _collectionSingleton extends Spine.Module @include App.LogInclude