render-core 1.3.17 → 1.3.19

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.
@@ -38,11 +38,11 @@ var AppController = /** @class */ (function () {
38
38
  for (var fieldsKey in this.fields) {
39
39
  if (this.fields[fieldsKey].react) {
40
40
  if (status_read({
41
- type: "session",
41
+ type: "local",
42
42
  fields: [fieldsKey]
43
43
  })[fieldsKey]) {
44
44
  this.fields[fieldsKey].data = status_read({
45
- type: "session",
45
+ type: "local",
46
46
  fields: [fieldsKey]
47
47
  })[fieldsKey]["data"];
48
48
  }
@@ -101,7 +101,16 @@ var AppController = /** @class */ (function () {
101
101
  return this.fields[field].data;
102
102
  }
103
103
  else {
104
- return null;
104
+ var application = Reflect.get(window, "appSite");
105
+ if (application.getField(field) == null) {
106
+ return null;
107
+ }
108
+ else {
109
+ this.fields[field] = {
110
+ data: application.getField(field),
111
+ react: true
112
+ };
113
+ }
105
114
  }
106
115
  };
107
116
  /**
@@ -22,11 +22,11 @@ var ContextController = /** @class */ (function () {
22
22
  for (var fieldsKey in this.fields) {
23
23
  if (this.fields[fieldsKey].react) {
24
24
  if (status_read({
25
- type: "local",
25
+ type: "session",
26
26
  fields: [fieldsKey]
27
27
  })[fieldsKey]) {
28
28
  this.fields[fieldsKey].data = status_read({
29
- type: "local",
29
+ type: "session",
30
30
  fields: [fieldsKey]
31
31
  })[fieldsKey]["data"];
32
32
  }
@@ -35,19 +35,14 @@ var ContextController = /** @class */ (function () {
35
35
  };
36
36
  ContextController.prototype.storeFields = function () {
37
37
  for (var fieldsKey in this.fields) {
38
- if (!status_read({
38
+ var data = {};
39
+ Reflect.set(data, fieldsKey, {
40
+ data: this.fields[fieldsKey]["data"]
41
+ });
42
+ status_write({
39
43
  type: "session",
40
- fields: [fieldsKey]
41
- })[fieldsKey]) {
42
- var data = {};
43
- Reflect.set(data, fieldsKey, {
44
- data: this.fields[fieldsKey]["data"]
45
- });
46
- status_write({
47
- type: "session",
48
- fields: data
49
- });
50
- }
44
+ fields: data
45
+ });
51
46
  }
52
47
  };
53
48
  /**
@@ -82,7 +77,16 @@ var ContextController = /** @class */ (function () {
82
77
  return this.fields[field].data;
83
78
  }
84
79
  else {
85
- return null;
80
+ var application = Reflect.get(window, "appSite");
81
+ if (application.getField(field) == null) {
82
+ return null;
83
+ }
84
+ else {
85
+ this.fields[field] = {
86
+ data: application.getField(field),
87
+ react: true
88
+ };
89
+ }
86
90
  }
87
91
  };
88
92
  return ContextController;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.3.17",
3
+ "version": "1.3.19",
4
4
  "description": "The core of render-js",
5
5
  "keywords": [
6
6
  "render",