173173 const node = this ; // Store access to node configuration itself
174174
175175 valueSelectField . on ( 'change' , async function ( ) {
176+ // eslint-disable-next-line no-invalid-this
176177 const selected = $ ( this ) . find ( 'option:selected' ) ;
177178
178179 // Ignore re-population change
242243
243244 // Initially change triggered by editor loaded, later with every user interaction.
244245 valuesConfigField . on ( 'change' , async function ( ) {
246+ // eslint-disable-next-line no-invalid-this
245247 const selectedConfigId = $ ( this ) . val ( ) ;
246248
247249 if ( selectedConfigId !== '_ADD_' ) { // Skip if "add new config" is selected
308310
309311 // dynamicControl property
310312 dynamicControlField . on ( 'change' , function ( ) {
313+ // eslint-disable-next-line no-invalid-this
311314 this . checked ? dynamicControlDetails . show ( ) : dynamicControlDetails . hide ( ) ;
312315 } ) ;
313316 dynamicCommandMsgPropertyField . typedInput ( { types : [ { label : 'msg.' , value : 'str' } ] } ) ;
314317 dynamicValueMsgPropertyField . typedInput ( { types : [ { label : 'msg.' , value : 'str' } ] } ) ;
315318
316319 // output Previous Value property
317320 outputPreviousValueField . on ( 'change' , function ( ) {
321+ // eslint-disable-next-line no-invalid-this
318322 this . checked ? outputPreviousValueDetails . show ( ) : outputPreviousValueDetails . hide ( ) ;
319323 } ) ;
320324 outputPreviousValueMsgPropertyField . typedInput ( { types : [ { label : 'msg.' , value : 'str' } ] } ) ;
321325
322326 // collectValues property
323327 collectValuesField . on ( 'change' , function ( ) {
328+ // eslint-disable-next-line no-invalid-this
324329 this . checked ? collectValuesDetails . show ( ) : collectValuesDetails . hide ( ) ;
325330 } ) ;
326331 collectValuesMsgPropertyField . typedInput ( { types : [ { label : 'msg.' , value : 'str' } ] } ) ;
327332
328333 // block if property
329334 blockIfEnableField . on ( 'change' , function ( ) {
335+ // eslint-disable-next-line no-invalid-this
330336 this . checked ? blockIfDetails . show ( ) : blockIfDetails . hide ( ) ;
331337 } ) ;
332338
337343
338344 // output MetaData property
339345 outputMetaDataField . on ( 'change' , function ( ) {
346+ // eslint-disable-next-line no-invalid-this
340347 this . checked ? outputMetaDataDetails . show ( ) : outputMetaDataDetails . hide ( ) ;
341348 } ) ;
342349 outputMetaDataMsgPropertyField . typedInput ( { types : [ { label : 'msg.' , value : 'str' } ] } ) ;
@@ -699,4 +706,4 @@ <h3>References</h3>
699706 < ul >
700707 < li > Node-RED doc < a href = "https://nodered.org/docs/user-guide/context" > Working with context</ a > </ li >
701708 </ ul >
702- </ script >
709+ </ script >
0 commit comments