wrap pusher receive into Ember.run.next

This commit is contained in:
Sven Fuchs 2012-09-14 14:27:02 +02:00
parent 028c7645fc
commit 0139fc37d9
4 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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 */