Skip to content

Commit

Permalink
DeepScan minor code fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
TotallyInformation committed Oct 21, 2023
1 parent 9d9a2e9 commit b43d89e
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion front-end/uibuilder.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5895,7 +5895,7 @@ var Uib = (_a = class {
type: "eventSend",
id: target.id !== "" ? target.id : void 0,
name: target.name !== "" ? target.name : void 0,
slotText: target.textContent && target.textContent !== "" ? target.textContent.substring(0, 255) : void 0,
slotText: target.textContent ? target.textContent.substring(0, 255) : void 0,
form,
props,
attribs,
Expand Down
2 changes: 1 addition & 1 deletion front-end/uibuilder.esm.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions front-end/uibuilder.esm.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion front-end/uibuilder.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -5896,7 +5896,7 @@
type: "eventSend",
id: target.id !== "" ? target.id : void 0,
name: target.name !== "" ? target.name : void 0,
slotText: target.textContent && target.textContent !== "" ? target.textContent.substring(0, 255) : void 0,
slotText: target.textContent ? target.textContent.substring(0, 255) : void 0,
form,
props,
attribs,
Expand Down
2 changes: 1 addition & 1 deletion front-end/uibuilder.iife.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions front-end/uibuilder.iife.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions nodes/libs/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class UibFs {
*/
#isConfigured = false

#logUndefinedError = new Error('pkgMgt: this.log is undefined')
#uibUndefinedError = new Error('pkgMgt: this.uib is undefined')
#rootFldrNullError = new Error('pkgMgt: this.uib.rootFolder is null')
// #logUndefinedError = new Error('fs: this.log is undefined')
// #uibUndefinedError = new Error('fs: this.uib is undefined')
// #rootFldrNullError = new Error('fs: this.uib.rootFolder is null')

/** @type {Array<string>} Updated by updateMergedPackageList which is called first in setup and then in various updates */
mergedPkgMasterList = []
Expand Down
2 changes: 1 addition & 1 deletion nodes/uib-element/customNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function buildHTML(node, msg, parent, md = false) {
let data = node.data
if (!node.data) data = ''
else if (Array.isArray(node.data)) data = node.data.join('/n')
else if ( node.data !== null && node.data.constructor.name === 'Object' ) {
else if ( node.data.constructor.name === 'Object' ) {
try {
data = JSON.stringify(node.data)
} catch (e) {
Expand Down
4 changes: 2 additions & 2 deletions nodes/uib-tag/customNode.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ <h3>Details</h3>
function onEditPrepare(node) {
$('#node-input-slotPropMarkdown').prop('checked', node.slotPropMarkdown)

if (!node.parent || node.parent === '') $('#node-input-parent').val('body')
if (!node.position || node.position === '') {
if (!node.parent) $('#node-input-parent').val('body')
if (!node.position) {
$('#node-input-position').val('last')
node.position = 'last'
}
Expand Down
4 changes: 2 additions & 2 deletions src/editor/uib-tag/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
function onEditPrepare(node) {
$('#node-input-slotPropMarkdown').prop('checked', node.slotPropMarkdown)

if (!node.parent || node.parent === '') $('#node-input-parent').val('body')
if (!node.position || node.position === '') {
if (!node.parent) $('#node-input-parent').val('body')
if (!node.position) {
$('#node-input-position').val('last')
node.position = 'last'
}
Expand Down
2 changes: 1 addition & 1 deletion src/front-end-module/uibuilder.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ export const Uib = class Uib {
type: 'eventSend',
id: target.id !== '' ? target.id : undefined,
name: target.name !== '' ? target.name : undefined,
slotText: target.textContent && target.textContent !== '' ? target.textContent.substring(0, 255) : undefined,
slotText: target.textContent ? target.textContent.substring(0, 255) : undefined,

form: form,
props: props,
Expand Down

0 comments on commit b43d89e

Please sign in to comment.