wrap pusher receive into Ember.run.next
This commit is contained in:
parent
028c7645fc
commit
0139fc37d9
|
@ -28,7 +28,8 @@ $.extend Travis.Pusher.prototype,
|
|||
receive: (event, data) ->
|
||||
if data.id
|
||||
data = @normalize(event, data)
|
||||
Travis.app.store.receive(event, data)
|
||||
Ember.run.next ->
|
||||
Travis.app.store.receive(event, data)
|
||||
|
||||
normalize: (event, data) ->
|
||||
switch event
|
||||
|
|
6
assets/javascripts/vendor/ember.js
vendored
6
assets/javascripts/vendor/ember.js
vendored
|
@ -2129,9 +2129,9 @@ function flushPendingChains() {
|
|||
|
||||
Ember.warn('Watching an undefined global, Ember expects watched globals to be setup by the time the run loop is flushed, check for typos', pendingQueue.length === 0);
|
||||
|
||||
if(pendingQueue.length > 0) {
|
||||
console.log(pendingQueue)
|
||||
}
|
||||
// if(pendingQueue.length > 0) {
|
||||
// console.log(pendingQueue)
|
||||
// }
|
||||
}
|
||||
|
||||
/** @private */
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4083,9 +4083,9 @@ function flushPendingChains() {
|
|||
|
||||
Ember.warn('Watching an undefined global, Ember expects watched globals to be setup by the time the run loop is flushed, check for typos', pendingQueue.length === 0);
|
||||
|
||||
if(pendingQueue.length > 0) {
|
||||
console.log(pendingQueue)
|
||||
}
|
||||
// if(pendingQueue.length > 0) {
|
||||
// console.log(pendingQueue)
|
||||
// }
|
||||
}
|
||||
|
||||
/** @private */
|
||||
|
|
Loading…
Reference in New Issue
Block a user