diff options
Diffstat (limited to 'src/animation/Queue.js')
-rw-r--r-- | src/animation/Queue.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animation/Queue.js b/src/animation/Queue.js index e01c3d6..ba484dc 100644 --- a/src/animation/Queue.js +++ b/src/animation/Queue.js @@ -16,7 +16,7 @@ export default class Queue { push (value) { // An item stores an id and the provided value - var item = typeof value.next !== 'undefined' ? value : { value: value, next: null, prev: null } + const item = typeof value.next !== 'undefined' ? value : { value: value, next: null, prev: null } // Deal with the queue being empty or populated if (this._last) { @@ -47,7 +47,7 @@ export default class Queue { shift () { // Check if we have a value - var remove = this._first + const remove = this._first if (!remove) return null // If we do, remove it and relink things |