瀏覽代碼

Fixed typo in TSLEncoder.js (#27075)

Khalid Abdullah 1 年之前
父節點
當前提交
e8ad12d2fa
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/jsm/transpiler/TSLEncoder.js

+ 3 - 3
examples/jsm/transpiler/TSLEncoder.js

@@ -57,7 +57,7 @@ class TSLEncoder {
 		this.uniqueNames = false;
 
 		this._currentProperties = {};
-		this._lastStatment = null;
+		this._lastStatement = null;
 
 	}
 
@@ -533,13 +533,13 @@ ${ this.tab }} );\n\n`;
 
 	setLastStatement( statement ) {
 
-		this._lastStatment = statement;
+		this._lastStatement = statement;
 
 	}
 
 	emitExtraLine( statement ) {
 
-		const last = this._lastStatment;
+		const last = this._lastStatement;
 		if ( last === null ) return '';
 
 		if ( statement.isReturn ) return '\n';