From 88994e1843afb5d56af67bd95bef9e8083b36276 Mon Sep 17 00:00:00 2001
From: RobTheFiveNine <49003204+RobTheFiveNine@users.noreply.github.com>
Date: Mon, 5 Oct 2020 18:08:02 +0100
Subject: [PATCH] Change terminology for property descriptors to 'labels'
---
build/litegraph.js | 4 ++--
build/litegraph.min.js | 4 ++--
src/litegraph.js | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/build/litegraph.js b/build/litegraph.js
index 765b36964..36fbdb91c 100644
--- a/build/litegraph.js
+++ b/build/litegraph.js
@@ -9453,7 +9453,7 @@ LGraphNode.prototype.executeAction = function(action)
entries.push({
content:
"" +
- (info.descriptor ? info.descriptor : i) +
+ (info.label ? info.label : i) +
"" +
"" +
value +
@@ -10051,7 +10051,7 @@ LGraphNode.prototype.executeAction = function(action)
var dialog = this.createDialog(
"" +
- (info.descriptor ? info.descriptor : property) +
+ (info.label ? info.label : property) +
"" +
input_html +
"",
diff --git a/build/litegraph.min.js b/build/litegraph.min.js
index b3675243a..a0dadea7d 100644
--- a/build/litegraph.min.js
+++ b/build/litegraph.min.js
@@ -4048,7 +4048,7 @@ $jscomp.polyfill("Object.values", function(x) {
a = m.getPropertyPrintableValue(a, n.values);
}
a = m.decodeHTML(a);
- k.push({content:"" + (n.descriptor ? n.descriptor : p) + "" + a + "", value:p});
+ k.push({content:"" + (n.label ? n.label : p) + "" + a + "", value:p});
}
if (k.length) {
return new f.ContextMenu(k, {event:d, callback:function(a, b, d, e) {
@@ -4371,7 +4371,7 @@ $jscomp.polyfill("Object.values", function(x) {
k += "";
}
}
- var h = this.createDialog("" + (c.descriptor ? c.descriptor : b) + "" + k + "", d);
+ var h = this.createDialog("" + (c.label ? c.label : b) + "" + k + "", d);
if ("enum" != f && "combo" != f || !c.values) {
if ("boolean" == f) {
(l = h.querySelector("input")) && l.addEventListener("click", function(a) {
diff --git a/src/litegraph.js b/src/litegraph.js
index 5fdf90aff..4404dbc36 100755
--- a/src/litegraph.js
+++ b/src/litegraph.js
@@ -9453,7 +9453,7 @@ LGraphNode.prototype.executeAction = function(action)
entries.push({
content:
"" +
- (info.descriptor ? info.descriptor : i) +
+ (info.label ? info.label : i) +
"" +
"" +
value +
@@ -10051,7 +10051,7 @@ LGraphNode.prototype.executeAction = function(action)
var dialog = this.createDialog(
"" +
- (info.descriptor ? info.descriptor : property) +
+ (info.label ? info.label : property) +
"" +
input_html +
"",