Fixing incorrect declaration order
MODIFY
addon/scheduler.js
addon/scheduler.js
@@ -7,6 +7,8 @@ const APP_SCHEDULER_HAS_SETUP = '__APP_SCHEDULER_HAS_SETUP__';
let _didTransition;
let _whenRoutePainted;
let _whenRouteIdle;
+let _rAFEnabled;
+let _activeRAFs = 0;
reset();
@@ -78,7 +80,7 @@ export function routeSettled() {
return _whenRouteIdle;
}
-let _rAFEnabled = useRAF();
+_rAFEnabled = useRAF();
export function useRAF(
rAFEnabled = typeof requestAnimationFrame === 'function'
) {
@@ -87,7 +89,6 @@ export function useRAF(
export function useRequestIdleCallback() {}
-let _activeRAFs = 0;
function _afterNextPaint() {
let promise = new RSVP.Promise(resolve => {
if (DEBUG) {

Fixing incorrect declaration order