Use Travis.trigger directly from poll method

This commit is contained in:
Piotr Sarnacki 2015-01-28 17:31:53 +01:00
parent 5fa2070fc6
commit 9297b25445

View File

@ -3,7 +3,6 @@ require 'travis/model'
Model = Travis.Model
Ajax = Travis.ajax
trigger = Travis.trigger
Account = Travis.Account
User = Model.extend
@ -77,7 +76,7 @@ User = Model.extend
else
@set('isSyncing', false)
@setWithSession('syncedAt', data.user.synced_at)
trigger('user:synced', data.user)
Travis.trigger('user:synced', data.user)
# need to pass any param to trigger findQuery
Account.find(foo: '')