theprogrammablemind 9.6.1-beta.1 → 9.6.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/configHelpers.js +12 -4
package/package.json
CHANGED
package/src/configHelpers.js
CHANGED
|
@@ -99,10 +99,18 @@ class ContextHierarchy {
|
|
|
99
99
|
this.contexts.pop()
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
under(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
under(markers) {
|
|
103
|
+
if (!markers) {
|
|
104
|
+
return this.contexts.length == 0
|
|
105
|
+
}
|
|
106
|
+
if (!Array.isArray(markers)) {
|
|
107
|
+
markers = [marker]
|
|
108
|
+
}
|
|
109
|
+
for (const marker of markers) {
|
|
110
|
+
for (let i = this.contexts.length - 1; i >= 0; --i) {
|
|
111
|
+
if (this.contexts[i].marker == marker) {
|
|
112
|
+
return true
|
|
113
|
+
}
|
|
106
114
|
}
|
|
107
115
|
}
|
|
108
116
|
}
|