housekeeping for delayed instance

beta.r3js.org
-=yb4f310 2017-10-27 17:54:03 +02:00
parent d2b3c7bf4c
commit 743e45b0f0
3 changed files with 7 additions and 3 deletions

View File

@ -119,6 +119,13 @@ GameLib.Component.prototype.createInstance = function() {
console.log('create instance : '+ this.name);
/**
* When you do actually call 'createInstance' - it is wise to state we are no longer delayed - we assume the caller
* knows when to call createInstance, so we do the housekeeping here
* @type {boolean}
*/
this.delayed = false;
if (this.instance) {
this.loaded = true;

View File

@ -164,7 +164,6 @@ GameLib.System.Input.prototype.start = function() {
false
);
editorControl.delayed = false;
editorControl.createInstance();
editorControl.domElement.instance.addEventListener(

View File

@ -1005,8 +1005,6 @@ GameLib.System.Storage.prototype.loadImage = function(data) {
image.instance = img;
image.delayed = false;
image.createInstance();
if (onLoaded) {