Updating terribly rude string
MODIFY
addon/index.js
addon/index.js
@@ -6,4 +6,5 @@ export {
didTransition,
afterFirstRoutePaint,
afterContentPaint,
+ TRANSITION_INTERUPTED,
} from './scheduler';

MODIFY
addon/scheduler.js
addon/scheduler.js
@@ -10,6 +10,8 @@ let _afterContentPaint;
reset();
+export const TRANSITION_INTERUPTED = 'TRANSITION INTERUPTED';
+
export function beginTransition() {
_checkForPriorTransition();
@@ -65,7 +67,7 @@ export function afterContentPaint() {
function _checkForPriorTransition() {
if (!_didTransition.isResolved) {
- _didTransition.reject('fuck off');
+ _didTransition.reject(TRANSITION_INTERUPTED);
}
}

Updating terribly rude string