Skip to content

Commit ea476e1

Browse files
committed
Potato, Potata
1 parent 088c704 commit ea476e1

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/engine/runtime.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -647,15 +647,15 @@ class Runtime extends EventEmitter {
647647
/**
648648
* Event called before interpolation data is set.
649649
*/
650-
static get BEFORE_INTERPOLATION () {
651-
return 'BEFORE_INTERPOLATION';
650+
static get BEFORE_INTERPOLATE () {
651+
return 'BEFORE_INTERPOLATE';
652652
}
653653

654654
/**
655655
* Event called after interpolation data is set.
656656
*/
657-
static get AFTER_INTERPOLATION () {
658-
return 'AFTER_INTERPOLATION';
657+
static get AFTER_INTERPOLATE () {
658+
return 'AFTER_INTERPOLATE';
659659
}
660660

661661
/**

src/engine/tw-interpolate.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const interpolate = (runtime, time) => {
6161
continue;
6262
}
6363

64-
runtime.emit(runtime.constructor.BEFORE_INTERPOLATION, target);
64+
runtime.emit(runtime.constructor.BEFORE_INTERPOLATE, target);
6565

6666
const drawableID = target.drawableID;
6767

@@ -140,7 +140,7 @@ const interpolate = (runtime, time) => {
140140
}
141141
}
142142

143-
runtime.emit(runtime.constructor.AFTER_INTERPOLATION, target);
143+
runtime.emit(runtime.constructor.AFTER_INTERPOLATE, target);
144144
}
145145
};
146146

src/virtual-machine.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ class VirtualMachine extends EventEmitter {
184184
this.runtime.on(Runtime.INTERPOLATION_CHANGED, framerate => {
185185
this.emit(Runtime.INTERPOLATION_CHANGED, framerate);
186186
});
187-
this.runtime.on(Runtime.BEFORE_INTERPOLATION, target => {
188-
this.emit(Runtime.BEFORE_INTERPOLATION, target);
187+
this.runtime.on(Runtime.BEFORE_INTERPOLATE, target => {
188+
this.emit(Runtime.BEFORE_INTERPOLATE, target);
189189
});
190-
this.runtime.on(Runtime.AFTER_INTERPOLATION, target => {
191-
this.emit(Runtime.AFTER_INTERPOLATION, target);
190+
this.runtime.on(Runtime.AFTER_INTERPOLATE, target => {
191+
this.emit(Runtime.AFTER_INTERPOLATE, target);
192192
});
193193
this.runtime.on(Runtime.STAGE_SIZE_CHANGED, (width, height) => {
194194
this.emit(Runtime.STAGE_SIZE_CHANGED, width, height);

0 commit comments

Comments
 (0)