@azrico/webobject 1.4.8 → 1.4.10

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.
@@ -665,7 +665,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
665
665
  _context7.next = 3;
666
666
  break;
667
667
  }
668
- console.error("you cant use events if your object has no manager");
668
+ if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
669
669
  return _context7.abrupt("return");
670
670
  case 3:
671
671
  for (_len = _args7.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -692,7 +692,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
692
692
  var onlyOn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
693
693
  var runOnce = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
694
694
  if (!this.manager) {
695
- console.error("you cant use events if your object has no manager");
695
+ if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
696
696
  return;
697
697
  }
698
698
  return this.manager.event_use(name, runEvent, onlyOn, runOnce);
@@ -701,7 +701,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
701
701
  key: "event_remove",
702
702
  value: function event_remove(name, uname) {
703
703
  if (!this.manager) {
704
- console.error("you cant use events if your object has no manager");
704
+ if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
705
705
  return;
706
706
  }
707
707
  return this.manager.event_remove(name, uname);
@@ -722,7 +722,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
722
722
  _context8.next = 5;
723
723
  break;
724
724
  }
725
- console.error("you cant use events if your object has no manager");
725
+ if (this.__showErrors === true) console.error("you cant use events if your object has no manager");
726
726
  return _context8.abrupt("return");
727
727
  case 5:
728
728
  _context8.next = 7;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",