From a33eda71cf8d99e4eed7219a218608bf250ec7b4 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 16 Feb 2018 12:26:43 +0100 Subject: [PATCH] Update: CC - Demo New - Key Up (ip0443a52d.js) 261 bytes modified --- ip0443a52d.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/ip0443a52d.js b/ip0443a52d.js index 8e487d7..6994295 100644 --- a/ip0443a52d.js +++ b/ip0443a52d.js @@ -3,25 +3,12 @@ if (!this.entityLoaded) { } if (!this.initialized) { - - this.currentImageIndex = 0; - this.initialized = true; - console.log('key up initialized'); } if (data.code === 'KeyL') { - - if (this.currentImageIndex === this.images.length) { - this.currentImageIndex = 0; - }; - - var attributeData = this.generateAttributeData(this.currentImageIndex, 128, 128); - - this.currentImageIndex++; - - this.startAnimation(attributeData); + this.loadNext(); } //@ sourceURL=ccKeyUp.js \ No newline at end of file