try debugging "undefined watched global"

This commit is contained in:
Sven Fuchs 2012-09-14 14:07:29 +02:00
parent 50de5c85d5
commit 028c7645fc
2 changed files with 164 additions and 156 deletions

View File

@ -2128,6 +2128,10 @@ function flushPendingChains() {
forEach.call(queue, function(q) { q[0].add(q[1]); });
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)
}
}
/** @private */

View File

@ -4082,6 +4082,10 @@ function flushPendingChains() {
forEach.call(queue, function(q) { q[0].add(q[1]); });
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)
}
}
/** @private */