From 612f426c3b63213b831a40c9178acbd9f16f554d Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 30 Aug 2017 21:33:07 +0200 Subject: [PATCH] helpers no longer components - it causes unnecessary register updates --- src/game-lib-d3-helper.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/game-lib-d3-helper.js b/src/game-lib-d3-helper.js index b295011..cf4062e 100644 --- a/src/game-lib-d3-helper.js +++ b/src/game-lib-d3-helper.js @@ -71,10 +71,12 @@ GameLib.D3.Helper = function( } this.parentEntity = parentEntity; - GameLib.Component.call( - this, - GameLib.Component.COMPONENT_HELPER - ); + this.instance = this.createInstance(); + + // GameLib.Component.call( + // this, + // GameLib.Component.COMPONENT_HELPER + // ); }; GameLib.D3.Helper.prototype = Object.create(GameLib.Component.prototype);