@azrico/webobject 1.5.71 → 1.5.72
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.
|
@@ -838,5 +838,6 @@ var WebObjectManager = exports.WebObjectManager = /*#__PURE__*/function (_Object
|
|
|
838
838
|
}]);
|
|
839
839
|
}(_ObjectManager2["default"]);
|
|
840
840
|
_defineProperty(WebObjectManager, "__object_type", void 0);
|
|
841
|
-
|
|
841
|
+
//off by default: the messages are in english, apps show their own
|
|
842
|
+
_defineProperty(WebObjectManager, "__save_message", false);
|
|
842
843
|
var _default = exports["default"] = WebObjectManager;
|
|
@@ -43,6 +43,7 @@ var ObjectManager = exports.ObjectManager = /*#__PURE__*/function (_MapableObjec
|
|
|
43
43
|
var _this;
|
|
44
44
|
_classCallCheck(this, ObjectManager);
|
|
45
45
|
_this = _callSuper(this, ObjectManager);
|
|
46
|
+
//a manager is usually made before its object is loaded, that is not a null set
|
|
46
47
|
_defineProperty(_this, "__eventContext", {});
|
|
47
48
|
_defineProperty(_this, "__last_object_data", {});
|
|
48
49
|
_defineProperty(_this, "__currentObject", void 0);
|
|
@@ -50,7 +51,7 @@ var ObjectManager = exports.ObjectManager = /*#__PURE__*/function (_MapableObjec
|
|
|
50
51
|
//can the current object be set to null safely?
|
|
51
52
|
_defineProperty(_this, "__object_nullable", false);
|
|
52
53
|
_defineProperty(_this, "setTemp", _this.set_temp);
|
|
53
|
-
_this.setObject(defaultObject);
|
|
54
|
+
if (defaultObject !== undefined) _this.setObject(defaultObject);
|
|
54
55
|
return _this;
|
|
55
56
|
}
|
|
56
57
|
_inherits(ObjectManager, _MapableObject);
|
|
@@ -157,8 +158,8 @@ var ObjectManager = exports.ObjectManager = /*#__PURE__*/function (_MapableObjec
|
|
|
157
158
|
}, {
|
|
158
159
|
key: "canModify",
|
|
159
160
|
get: function get() {
|
|
160
|
-
var _this$obj2;
|
|
161
|
-
return
|
|
161
|
+
var _this$obj$canModify, _this$obj2;
|
|
162
|
+
return (_this$obj$canModify = (_this$obj2 = this.obj) === null || _this$obj2 === void 0 ? void 0 : _this$obj2.canModify) !== null && _this$obj$canModify !== void 0 ? _this$obj$canModify : false;
|
|
162
163
|
}
|
|
163
164
|
}, {
|
|
164
165
|
key: "isNew",
|