@azrico/webobject 1.5.56 → 1.5.57

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.
@@ -971,8 +971,9 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
971
971
  }, {
972
972
  key: "objectColor",
973
973
  get: function get() {
974
- if (!_classPrivateFieldGet(_objectColor, this)) {
975
- _classPrivateFieldSet(_objectColor, this, (0, _string.string_to_color)(this.getID()));
974
+ if (!_classPrivateFieldGet(_objectColor, this) || _classPrivateFieldGet(_objectColor, this) === "#000000") {
975
+ var lastid = this.getID();
976
+ if (!lastid) _classPrivateFieldSet(_objectColor, this, "#000000");else _classPrivateFieldSet(_objectColor, this, (0, _string.string_to_color)(lastid));
976
977
  }
977
978
  return _classPrivateFieldGet(_objectColor, this);
978
979
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.5.56",
3
+ "version": "1.5.57",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",