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

fix linting errors introduced in #3553

This commit is contained in:
Stephen McLaughlin 2022-04-27 15:31:14 +01:00 committed by GitHub
parent dc03d0b300
commit f04e3d5338
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("/");
}
if (stateId && suffix) { stateId += "/" + suffix; };
if (stateId && suffix) { stateId += "/" + suffix; }
return stateId;
} catch (error) {
return false;

View File

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

View File

@ -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() {}
}

View File

@ -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() {}
}

View File

@ -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() {}
}

View File

@ -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() {}
}

View File

@ -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;

View File

@ -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() {}
}

View File

@ -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");
}