BUGFIX: Ember.run.throttle is dodge.

This commit is contained in:
Sam 2014-06-05 09:55:45 +10:00
parent 08346974cf
commit daa5b1f77d

View File

@ -891,8 +891,9 @@
}; };
var setupScrollSync = function() { var setupScrollSync = function() {
var sync = _.throttle(syncScroll, 20);
$(panels.input).scroll(function() { $(panels.input).scroll(function() {
Ember.run.throttle(null, syncScroll, 16); sync();
}); });
}; };
@ -987,7 +988,6 @@
currentWait = wait; currentWait = wait;
} }
//console.log(currentWait);
if (timeout) { clearTimeout(timeout); } if (timeout) { clearTimeout(timeout); }
timeout = setTimeout(later, currentWait); timeout = setTimeout(later, currentWait);
} }