From c3668109514ddb0350df141c5fa249689e6b254d Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 27 Oct 2017 11:07:34 +0200 Subject: [PATCH] remember to delay instance --- src/game-lib-a-component-a.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/game-lib-a-component-a.js b/src/game-lib-a-component-a.js index 18e364d..ac8c4bd 100644 --- a/src/game-lib-a-component-a.js +++ b/src/game-lib-a-component-a.js @@ -63,7 +63,20 @@ GameLib.Component = function( */ if (this.linked) { try { - this.createInstance(); + + if (!this.delayed) { + this.createInstance(); + } + // else { + // GameLib.Event.Subscribe( + // GameLib.Event.DELAYED_INSTANCE, + // function(data) { + // + // } + // ) + // } + // + } catch (error) { console.error(error); }