FIX: Regression with quickly hitting back button in vdom branch

This commit is contained in:
Robin Ward 2016-02-08 12:41:56 -05:00
parent 2b1e7306e1
commit bad9835120

View file

@ -34,6 +34,8 @@ export default MountWidget.extend({
}).volatile(), }).volatile(),
scrolled() { scrolled() {
if (this.isDestroyed || this.isDestroying) { return; }
const $w = $(window); const $w = $(window);
const windowHeight = window.innerHeight ? window.innerHeight : $w.height(); const windowHeight = window.innerHeight ? window.innerHeight : $w.height();
const slack = Math.round(windowHeight * 15); const slack = Math.round(windowHeight * 15);