gui array query by constructor fix

beta.r3js.org
-=yb4f310 2017-12-30 19:27:07 +01:00
parent ff68ee618f
commit 916cc4f00a
3 changed files with 6 additions and 6 deletions

View File

@ -593,7 +593,7 @@ GameLib.System.GUI.prototype.buildArrayManagerControl = function(
var idObject = {};
var selectionObject = GameLib.EntityManager.Instance.queryComponents(constructors).reduce(
var selectionObject = GameLib.EntityManager.Instance.queryComponentsByConstructor(constructors).reduce(
function(result, component) {
result[component.name] = component;
idObject[component.id] = component;

View File

@ -150,7 +150,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
if (data.component instanceof GameLib.Controls.D3.Editor) {
if (this.editorControls.length > 0) {
console.log('ignoring multiple editor controls')
console.log('Ignoring multiple editor controls')
} else {
this.editorControls.push(data.component);
this.registerEditorControls();
@ -159,7 +159,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
if (data.component instanceof GameLib.Controls.Touch) {
if (this.touchControls.length > 0) {
console.log('ignoring multiple touch controls')
console.log('Ignoring multiple touch controls')
} else {
this.touchControls.push(data.component);
this.registerTouchControls();
@ -168,7 +168,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
if (data.component instanceof GameLib.Controls.Keyboard) {
if (this.keyboardControls.length > 0 || this.editorControls.length > 0) {
console.log('ignoring multiple keyboard controls')
console.log('Ignoring multiple keyboard controls')
} else {
this.keyboardControls.push(data.component);
this.registerKeyboardControls();
@ -177,7 +177,7 @@ GameLib.System.Input.prototype.instanceCreated = function(data) {
if (data.component instanceof GameLib.Controls.Mouse) {
if (this.mouseControls.length > 0) {
console.log('ignoring multiple mouse controls')
console.log('Ignoring multiple mouse controls')
} else {
this.mouseControls.push(data.component);
this.registerMouseControls();

View File

@ -636,7 +636,7 @@ GameLib.System.Storage.prototype.xhrLoad = function(
return;
}
console.log("Loading...", 'success');
console.log('Loading from ' + url);
var xhr = new XMLHttpRequest();
xhr.open("GET", url);