refactoring
This commit is contained in:
@@ -4,7 +4,6 @@ class MotionEngine {
|
||||
constructor() {
|
||||
const aq = [];
|
||||
const clock = new Clock();
|
||||
|
||||
this.animationQueue = aq;
|
||||
|
||||
function calcValues(target, values, initial, k = 1, mode = 'offset') {
|
||||
@@ -42,6 +41,11 @@ class MotionEngine {
|
||||
}
|
||||
};
|
||||
|
||||
this.clearAll = function(){
|
||||
aq.splice(0, aq.length);
|
||||
return;
|
||||
}
|
||||
|
||||
this.remove = function (a) {
|
||||
let idx = aq.indexOf(a);
|
||||
if (idx > -1) {
|
||||
|
||||
Reference in New Issue
Block a user