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.
@@ -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
- return element.$parentScopes.concat([element.$scope]);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.22.2",
3
+ "version": "4.22.3",
4
4
  "description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
5
5
  "main": "public/efront.js",
6
6
  "directories": {