1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3556 from Steve-Mcl/fixlintsm

fix linting errors introduced in #3553
This commit is contained in:
Stephen McLaughlin 2022-04-27 17:13:38 +01:00 committed by GitHub
commit 12c309fd50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 10 additions and 17 deletions

View File

@ -1993,7 +1993,7 @@ RED.editor = (function() {
} }
stateId = sb.join("/"); stateId = sb.join("/");
} }
if (stateId && suffix) { stateId += "/" + suffix; }; if (stateId && suffix) { stateId += "/" + suffix; }
return stateId; return stateId;
} catch (error) { } catch (error) {
return false; return false;

View File

@ -68,7 +68,7 @@
id: "node-dialog-cancel", id: "node-dialog-cancel",
text: RED._("common.label.cancel"), text: RED._("common.label.cancel"),
click: function() { click: function() {
if (onCancel) { onCancel() }; if (onCancel) { onCancel(); }
RED.tray.close(); RED.tray.close();
} }
}, },

View File

@ -71,7 +71,7 @@
id: "node-dialog-cancel", id: "node-dialog-cancel",
text: RED._("common.label.cancel"), text: RED._("common.label.cancel"),
click: function() { click: function() {
if(onCancel) { onCancel() }; if(onCancel) { onCancel(); }
RED.tray.close(); RED.tray.close();
} }
}, },
@ -356,9 +356,6 @@
expressionEditor.destroy(); expressionEditor.destroy();
testDataEditor.destroy(); testDataEditor.destroy();
testResultEditor.destroy(); testResultEditor.destroy();
delete expressionEditor;
delete testDataEditor;
delete testResultEditor;
}, },
show: function() {} show: function() {}
} }

View File

@ -38,7 +38,7 @@
id: "node-dialog-cancel", id: "node-dialog-cancel",
text: RED._("common.label.cancel"), text: RED._("common.label.cancel"),
click: function() { click: function() {
if (onCancel) { onCancel() }; if (onCancel) { onCancel(); }
RED.tray.close(); RED.tray.close();
} }
}, },
@ -97,7 +97,6 @@
options.onclose(); options.onclose();
} }
expressionEditor.destroy(); expressionEditor.destroy();
delete expressionEditor;
}, },
show: function() {} show: function() {}
} }

View File

@ -465,7 +465,7 @@
id: "node-dialog-cancel", id: "node-dialog-cancel",
text: RED._("common.label.cancel"), text: RED._("common.label.cancel"),
click: function() { click: function() {
if (onCancel) { onCancel() }; if (onCancel) { onCancel(); }
RED.tray.close(); RED.tray.close();
} }
}, },
@ -488,7 +488,7 @@
result = expressionEditor.getValue(); result = expressionEditor.getValue();
} }
expressionEditor.saveView(); expressionEditor.saveView();
if (onComplete) { onComplete(result,null,expressionEditor) }; if (onComplete) { onComplete(result,null,expressionEditor) }
RED.tray.close(); RED.tray.close();
} }
} }
@ -609,7 +609,6 @@
options.onclose(); options.onclose();
} }
expressionEditor.destroy(); expressionEditor.destroy();
delete expressionEditor;
}, },
show: function() {} show: function() {}
} }

View File

@ -73,7 +73,7 @@
id: "node-dialog-cancel", id: "node-dialog-cancel",
text: RED._("common.label.cancel"), text: RED._("common.label.cancel"),
click: function() { click: function() {
if (onCancel) { onCancel() }; if (onCancel) { onCancel(); }
RED.tray.close(); RED.tray.close();
} }
}, },
@ -159,7 +159,6 @@
options.onclose(); options.onclose();
} }
expressionEditor.destroy(); expressionEditor.destroy();
delete expressionEditor;
}, },
show: function() {} show: function() {}
} }

View File

@ -57,7 +57,7 @@
var nodeInfoEditor = RED.editor.createEditor({ var nodeInfoEditor = RED.editor.createEditor({
id: editorId, id: editorId,
mode: 'ace/mode/markdown', mode: 'ace/mode/markdown',
stateId: RED.editor.generateViewStateId("node", node, "nodeinfo",), stateId: RED.editor.generateViewStateId("node", node, "nodeinfo"),
value: node.info || "" value: node.info || ""
}); });
node.infoEditor = nodeInfoEditor; node.infoEditor = nodeInfoEditor;

View File

@ -38,7 +38,7 @@
id: "node-dialog-cancel", id: "node-dialog-cancel",
text: RED._("common.label.cancel"), text: RED._("common.label.cancel"),
click: function() { click: function() {
if(onCancel) { onCancel() }; if(onCancel) { onCancel(); }
RED.tray.close(); RED.tray.close();
} }
}, },
@ -78,7 +78,6 @@
options.onclose(); options.onclose();
} }
expressionEditor.destroy(); expressionEditor.destroy();
delete expressionEditor;
}, },
show: function() {} show: function() {}
} }

View File

@ -172,7 +172,7 @@
if(!options.hasOwnProperty("focusElement")) { if(!options.hasOwnProperty("focusElement")) {
//focusElement is not inside options - default to focusing 1st //focusElement is not inside options - default to focusing 1st
body.find(":focusable:first").trigger("focus"); 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) //focusElement IS specified, focus that instead (if not false)
$(options.focusElement).trigger("focus"); $(options.focusElement).trigger("focus");
} }