From 694962ca3c0327267a0c024a18cdbce16df42ad5 Mon Sep 17 00:00:00 2001 From: SUNAG Date: Wed, 23 Dec 2015 03:24:36 -0200 Subject: [PATCH] renamed getElementIndex to getIndexByElement --- examples/js/nodes/BuilderNode.js | 2 +- examples/js/nodes/utils/SwitchNode.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/js/nodes/BuilderNode.js b/examples/js/nodes/BuilderNode.js index 4c447ffcdb..fd39f3d373 100644 --- a/examples/js/nodes/BuilderNode.js +++ b/examples/js/nodes/BuilderNode.js @@ -136,7 +136,7 @@ THREE.BuilderNode.prototype = { }, - getElementIndex : function( elm ) { + getIndexByElement : function( elm ) { return THREE.BuilderNode.elements.indexOf( elm ); diff --git a/examples/js/nodes/utils/SwitchNode.js b/examples/js/nodes/utils/SwitchNode.js index 4c65ff7c14..3c883c15d6 100644 --- a/examples/js/nodes/utils/SwitchNode.js +++ b/examples/js/nodes/utils/SwitchNode.js @@ -36,7 +36,7 @@ THREE.SwitchNode.prototype.generate = function( builder, output ) { for ( i = 0; i < len; i ++ ) { - outputLength = Math.max( outputLength, builder.getElementIndex( this.component.charAt( i ) ) ); + outputLength = Math.max( outputLength, builder.getIndexByElement( this.component.charAt( i ) ) ); } @@ -49,7 +49,7 @@ THREE.SwitchNode.prototype.generate = function( builder, output ) { for ( i = 0; i < len; i ++ ) { var elm = this.component.charAt( i ); - var idx = builder.getElementIndex( this.component.charAt( i ) ); + var idx = builder.getIndexByElement( this.component.charAt( i ) ); if ( idx > outputLength ) idx = outputLength; -- GitLab