Przeglądaj źródła

Fixed typo in TSLEncoder.js (#27075)

Khalid Abdullah 1 rok temu
rodzic
commit
e8ad12d2fa
1 zmienionych plików z 3 dodań i 3 usunięć
  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.uniqueNames = false;
 
 
 		this._currentProperties = {};
 		this._currentProperties = {};
-		this._lastStatment = null;
+		this._lastStatement = null;
 
 
 	}
 	}
 
 
@@ -533,13 +533,13 @@ ${ this.tab }} );\n\n`;
 
 
 	setLastStatement( statement ) {
 	setLastStatement( statement ) {
 
 
-		this._lastStatment = statement;
+		this._lastStatement = statement;
 
 
 	}
 	}
 
 
 	emitExtraLine( statement ) {
 	emitExtraLine( statement ) {
 
 
-		const last = this._lastStatment;
+		const last = this._lastStatement;
 		if ( last === null ) return '';
 		if ( last === null ) return '';
 
 
 		if ( statement.isReturn ) return '\n';
 		if ( statement.isReturn ) return '\n';