提交 694962ca 编写于 作者: S SUNAG

renamed getElementIndex to getIndexByElement

上级 687d3d62
......@@ -136,7 +136,7 @@ THREE.BuilderNode.prototype = {
},
getElementIndex : function( elm ) {
getIndexByElement : function( elm ) {
return THREE.BuilderNode.elements.indexOf( elm );
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册