diff --git a/examples/js/nodes/BuilderNode.js b/examples/js/nodes/BuilderNode.js index 4c447ffcdb6664657d2e09a0d766e34e69da84ea..fd39f3d3739892c22ab8cac2cc383fb336b18213 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 4c65ff7c14e5993edbe9a341cffea0282b706846..3c883c15d6aef23c354ecdfbc2f29616ad6cefbf 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;