mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #3556 from Steve-Mcl/fixlintsm
fix linting errors introduced in #3553
This commit is contained in:
		| @@ -1993,7 +1993,7 @@ RED.editor = (function() { | ||||
|                 } | ||||
|                 stateId = sb.join("/"); | ||||
|             } | ||||
|             if (stateId && suffix) { stateId += "/" + suffix; }; | ||||
|             if (stateId && suffix) { stateId += "/" + suffix; } | ||||
|             return stateId; | ||||
|         } catch (error) { | ||||
|             return false; | ||||
|   | ||||
| @@ -68,7 +68,7 @@ | ||||
|                         id: "node-dialog-cancel", | ||||
|                         text: RED._("common.label.cancel"), | ||||
|                         click: function() { | ||||
|                             if (onCancel) { onCancel() }; | ||||
|                             if (onCancel) { onCancel(); } | ||||
|                             RED.tray.close(); | ||||
|                         } | ||||
|                     }, | ||||
|   | ||||
| @@ -71,7 +71,7 @@ | ||||
|                         id: "node-dialog-cancel", | ||||
|                         text: RED._("common.label.cancel"), | ||||
|                         click: function() { | ||||
|                             if(onCancel) { onCancel() }; | ||||
|                             if(onCancel) { onCancel(); } | ||||
|                             RED.tray.close(); | ||||
|                         } | ||||
|                     }, | ||||
| @@ -356,9 +356,6 @@ | ||||
|                     expressionEditor.destroy(); | ||||
|                     testDataEditor.destroy(); | ||||
|                     testResultEditor.destroy(); | ||||
|                     delete expressionEditor; | ||||
|                     delete testDataEditor; | ||||
|                     delete testResultEditor; | ||||
|                 }, | ||||
|                 show: function() {} | ||||
|             } | ||||
|   | ||||
| @@ -38,7 +38,7 @@ | ||||
|                         id: "node-dialog-cancel", | ||||
|                         text: RED._("common.label.cancel"), | ||||
|                         click: function() { | ||||
|                             if (onCancel) { onCancel() }; | ||||
|                             if (onCancel) { onCancel(); } | ||||
|                             RED.tray.close(); | ||||
|                         } | ||||
|                     }, | ||||
| @@ -97,7 +97,6 @@ | ||||
|                         options.onclose(); | ||||
|                     } | ||||
|                     expressionEditor.destroy(); | ||||
|                     delete expressionEditor; | ||||
|                 }, | ||||
|                 show: function() {} | ||||
|             } | ||||
|   | ||||
| @@ -465,7 +465,7 @@ | ||||
|                         id: "node-dialog-cancel", | ||||
|                         text: RED._("common.label.cancel"), | ||||
|                         click: function() { | ||||
|                             if (onCancel) { onCancel() }; | ||||
|                             if (onCancel) { onCancel(); } | ||||
|                             RED.tray.close(); | ||||
|                         } | ||||
|                     }, | ||||
| @@ -488,7 +488,7 @@ | ||||
|                                 result = expressionEditor.getValue(); | ||||
|                             } | ||||
|                             expressionEditor.saveView(); | ||||
|                             if (onComplete) { onComplete(result,null,expressionEditor) }; | ||||
|                             if (onComplete) { onComplete(result,null,expressionEditor) } | ||||
|                             RED.tray.close(); | ||||
|                         } | ||||
|                     } | ||||
| @@ -609,7 +609,6 @@ | ||||
|                         options.onclose(); | ||||
|                     } | ||||
|                     expressionEditor.destroy(); | ||||
|                     delete expressionEditor; | ||||
|                 }, | ||||
|                 show: function() {} | ||||
|             } | ||||
|   | ||||
| @@ -73,7 +73,7 @@ | ||||
|                         id: "node-dialog-cancel", | ||||
|                         text: RED._("common.label.cancel"), | ||||
|                         click: function() { | ||||
|                             if (onCancel) { onCancel() }; | ||||
|                             if (onCancel) { onCancel(); } | ||||
|                             RED.tray.close(); | ||||
|                         } | ||||
|                     }, | ||||
| @@ -159,7 +159,6 @@ | ||||
|                         options.onclose(); | ||||
|                     } | ||||
|                     expressionEditor.destroy(); | ||||
|                     delete expressionEditor; | ||||
|                 }, | ||||
|                 show: function() {} | ||||
|             } | ||||
|   | ||||
| @@ -57,7 +57,7 @@ | ||||
|         var nodeInfoEditor = RED.editor.createEditor({ | ||||
|             id: editorId, | ||||
|             mode: 'ace/mode/markdown', | ||||
|             stateId: RED.editor.generateViewStateId("node", node, "nodeinfo",), | ||||
|             stateId: RED.editor.generateViewStateId("node", node, "nodeinfo"), | ||||
|             value: node.info || "" | ||||
|         }); | ||||
|         node.infoEditor = nodeInfoEditor; | ||||
|   | ||||
| @@ -38,7 +38,7 @@ | ||||
|                         id: "node-dialog-cancel", | ||||
|                         text: RED._("common.label.cancel"), | ||||
|                         click: function() { | ||||
|                             if(onCancel) { onCancel() }; | ||||
|                             if(onCancel) { onCancel(); } | ||||
|                             RED.tray.close(); | ||||
|                         } | ||||
|                     }, | ||||
| @@ -78,7 +78,6 @@ | ||||
|                         options.onclose(); | ||||
|                     } | ||||
|                     expressionEditor.destroy(); | ||||
|                     delete expressionEditor; | ||||
|                 }, | ||||
|                 show: function() {} | ||||
|             } | ||||
|   | ||||
| @@ -172,7 +172,7 @@ | ||||
|                     if(!options.hasOwnProperty("focusElement")) { | ||||
|                         //focusElement is not inside options - default to focusing 1st | ||||
|                         body.find(":focusable:first").trigger("focus"); | ||||
|                     } else if(!options.focusElement === false) { | ||||
|                     } else if(options.focusElement !== false) { | ||||
|                         //focusElement IS specified, focus that instead (if not false) | ||||
|                         $(options.focusElement).trigger("focus"); | ||||
|                     }  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user