render-core 1.3.20 → 1.3.22

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.
@@ -11,7 +11,12 @@ var AppController = /** @class */ (function () {
11
11
  data: "default",
12
12
  react: true,
13
13
  callback: function (value, context) {
14
- context.setField("system_theme", value);
14
+ context.saveFields({
15
+ data: value,
16
+ react: true
17
+ });
18
+ context.storeFields();
19
+ context.loadFields();
15
20
  }
16
21
  }
17
22
  };
@@ -72,17 +72,7 @@ var ContextController = /** @class */ (function () {
72
72
  return this.fields[field].data;
73
73
  }
74
74
  else {
75
- var application = Reflect.get(window, "appSite");
76
- if (application.getField(field) == null) {
77
- return null;
78
- }
79
- else {
80
- this.fields[field] = {
81
- data: application.getField(field),
82
- react: true
83
- };
84
- return this.fields[field].data;
85
- }
75
+ return null;
86
76
  }
87
77
  };
88
78
  return ContextController;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.3.20",
3
+ "version": "1.3.22",
4
4
  "description": "The core of render-js",
5
5
  "keywords": [
6
6
  "render",