File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ const MECHANISM_FUNCTION = {
103
103
*/
104
104
updateBlock_ : function ( this : MechanismBlock ) : void {
105
105
// Add input sockets for the arguments.
106
- for ( const i = 0 ; i < this . mrcArgs . length ; i ++ ) {
106
+ for ( let i = 0 ; i < this . mrcArgs . length ; i ++ ) {
107
107
const input = this . appendValueInput ( 'ARG' + i )
108
108
. setAlign ( Blockly . inputs . Align . RIGHT )
109
109
. appendField ( this . mrcArgs [ i ] . name ) ;
@@ -129,7 +129,7 @@ export const pythonFromBlock = function (
129
129
let code = 'self.mechanisms["' + mechanismBlock . getFieldValue ( 'NAME' ) + '"] = '
130
130
+ mechanismBlock . getFieldValue ( 'TYPE' ) + '('
131
131
132
- for ( const i = 0 ; i < mechanismBlock . mrcArgs . length ; i ++ ) {
132
+ for ( let i = 0 ; i < mechanismBlock . mrcArgs . length ; i ++ ) {
133
133
const fieldName = 'ARG' + i ;
134
134
if ( i != 0 ) {
135
135
code += ', '
You can’t perform that action at this time.
0 commit comments