From 8fca0b7dfaeee356f061472cfb586e8584a74de1 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 27 Oct 2017 09:39:46 +0200 Subject: [PATCH] parent update --- src/game-lib-a-component-a.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/game-lib-a-component-a.js b/src/game-lib-a-component-a.js index bb17561..b63cbdb 100644 --- a/src/game-lib-a-component-a.js +++ b/src/game-lib-a-component-a.js @@ -91,11 +91,7 @@ GameLib.Component.prototype.getDependencies = function() { if ( this.linkedObjects.hasOwnProperty(property) && - property !== 'parentMesh' && - property !== 'parentScene' && - property !== 'parentWorld' && - property !== 'parentEntity' && - property !== 'parentEntityManager' && + property.indexOf('parent') !== 0 && this.hasOwnProperty(property) ){ if (typeof this[property] === 'string') { @@ -304,11 +300,7 @@ GameLib.Component.prototype.buildIdToObject = function() { this.linkedObjects.hasOwnProperty(property) && this.hasOwnProperty(property) && this[property] && - property !== 'parentEntity' && - property !== 'parentScene' && - property !== 'parentMesh' && - property !== 'parentWorld' && - property !== 'parentEntityManager' && + property.indexOf('parent') !== 0 && loaded ) {