From a1099c07842ef54301ed6fc2638d46bbe4e510a3 Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Thu, 23 Sep 2021 20:24:34 +0200 Subject: [PATCH] small fix --- dist/r3.js | 7 +++---- package.json | 2 +- src/r3/r3-entity/r3-entity-slider.js | 3 +-- src/r3/r3-r3.js | 4 ++-- src/templates/initialize_after.template | 2 +- version | 2 +- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/dist/r3.js b/dist/r3.js index 44a6367..bc1d60a 100644 --- a/dist/r3.js +++ b/dist/r3.js @@ -1,6 +1,6 @@ class R3 { - static version = '3.0.68'; - static compileDate = '2021 Sep 23 - 20:21:29 pm'; + static version = '3.0.69'; + static compileDate = '2021 Sep 23 - 20:23:57 pm'; } class Runtime { @@ -3136,7 +3136,6 @@ class EntitySlider extends Entity { if (this.initialized) { Event.Emit(Event.SLIDER_ENTITY_INITIALIZED, this); } - //TODO: stop() entity if it is no longer ready if (this.initializeDepth === this.maxDepth) { @@ -3144,7 +3143,7 @@ class EntitySlider extends Entity { this.createInstance(); } - if (this instanceof R3.Entity && this.initialized) { + if (this instanceof R3.Entity && this.initialized && !this.started) { this.start(); } diff --git a/package.json b/package.json index 8c9c2a5..eb01241 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "r3", - "version" : "3.0.68", + "version" : "3.0.69", "description": "", "private": true, "dependencies": { diff --git a/src/r3/r3-entity/r3-entity-slider.js b/src/r3/r3-entity/r3-entity-slider.js index 81f389a..e563aae 100644 --- a/src/r3/r3-entity/r3-entity-slider.js +++ b/src/r3/r3-entity/r3-entity-slider.js @@ -364,7 +364,6 @@ class EntitySlider extends Entity { if (this.initialized) { Event.Emit(Event.SLIDER_ENTITY_INITIALIZED, this); } - //TODO: stop() entity if it is no longer ready //CUSTOM_INITIALIZE_METHOD_END //GENERATED_INITIALIZE_METHOD_AFTER_START @@ -374,7 +373,7 @@ class EntitySlider extends Entity { this.createInstance(); } - if (this instanceof R3.Entity && this.initialized) { + if (this instanceof R3.Entity && this.initialized && !this.started) { this.start(); } diff --git a/src/r3/r3-r3.js b/src/r3/r3-r3.js index 9c4713a..3bcdd2e 100644 --- a/src/r3/r3-r3.js +++ b/src/r3/r3-r3.js @@ -1,6 +1,6 @@ class R3 { - static version = '3.0.68'; - static compileDate = '2021 Sep 23 - 20:21:29 pm'; + static version = '3.0.69'; + static compileDate = '2021 Sep 23 - 20:23:57 pm'; } //GENERATED_IMPORTS_START diff --git a/src/templates/initialize_after.template b/src/templates/initialize_after.template index c19d2c6..dab0da7 100644 --- a/src/templates/initialize_after.template +++ b/src/templates/initialize_after.template @@ -4,7 +4,7 @@ this.createInstance(); } - if (this instanceof R3.Entity && this.initialized) { + if (this instanceof R3.Entity && this.initialized && !this.started) { this.start(); } diff --git a/version b/version index f1eb5bc..6f495ea 100644 --- a/version +++ b/version @@ -1 +1 @@ -3.0.68 \ No newline at end of file +3.0.69 \ No newline at end of file