Don't inject pusher instance if it wasn't created

This commit is contained in:
Piotr Sarnacki 2015-02-02 10:17:29 +01:00
parent 2e644d0415
commit 1a6c09e624

View File

@ -7,11 +7,11 @@ initialize = (container, application) ->
if config.pusher.key
application.pusher = new Pusher(config.pusher)
application.register 'pusher:main', application.pusher, { instantiate: false }
application.register 'pusher:main', application.pusher, { instantiate: false }
application.inject('route', 'pusher', 'pusher:main')
application.inject('route', 'pusher', 'pusher:main')
application.pusher.store = container.lookup('store:main')
application.pusher.store = container.lookup('store:main')
PusherInitializer =