efront 4.22.2 → 4.22.3
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/coms/zimoli/render.js +4 -2
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/render.js
CHANGED
|
@@ -141,7 +141,9 @@ function rebuild(element, isFirstRender) {
|
|
|
141
141
|
var variableReg = /([^\:\,\+\=\-\!%\^\|\/\&\*\!\;\?\>\<~\{\}\s\[\]\(\)]|\?\s*\.(?=[^\d])|\s*\.\s*)+/g;
|
|
142
142
|
var variableOnlyReg = new RegExp(`^${variableReg.source}$`);
|
|
143
143
|
var getScopeList = function (element) {
|
|
144
|
-
|
|
144
|
+
var scopes = (element.$parentScopes || []).concat();
|
|
145
|
+
if (element.$scope) scopes.push(element.$scope);
|
|
146
|
+
return scopes;
|
|
145
147
|
};
|
|
146
148
|
var createGetter = function (target, search, isprop = true) {
|
|
147
149
|
if (!search) return function () { };
|
|
@@ -566,7 +568,7 @@ class Binder2 {
|
|
|
566
568
|
var createBinder2 = function (write, read) {
|
|
567
569
|
return function (search) {
|
|
568
570
|
var getter = createGetter(this, search);
|
|
569
|
-
var oldValue = isFunction(read) ? read(this) : undefined;
|
|
571
|
+
var oldValue = isFunction(read) ? read.call(this) : undefined;
|
|
570
572
|
this.$renders.push(new Binder2(getter, write, oldValue));
|
|
571
573
|
};
|
|
572
574
|
}
|