@one-commerce/sdk-core 1.19.6 → 1.19.8

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.
@@ -57,18 +57,17 @@ function _inherits(subClass, superClass) {
57
57
  }
58
58
 
59
59
  function _getPrototypeOf(o) {
60
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
60
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
61
61
  return o.__proto__ || Object.getPrototypeOf(o);
62
62
  };
63
63
  return _getPrototypeOf(o);
64
64
  }
65
65
 
66
66
  function _setPrototypeOf(o, p) {
67
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
67
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
68
68
  o.__proto__ = p;
69
69
  return o;
70
70
  };
71
-
72
71
  return _setPrototypeOf(o, p);
73
72
  }
74
73
 
@@ -969,10 +968,9 @@ var Sdk = /*#__PURE__*/function (_Events) {
969
968
  }
970
969
  });
971
970
  Sdk.log('Emitting INIT with payload ', _this.instances);
971
+ _this.isInitialized = true;
972
972
 
973
973
  _this.emit(SdkInternalEvents.INIT, _this.instances);
974
-
975
- _this.isInitialized = true;
976
974
  });
977
975
 
978
976
  _this.channel.subscribe(main.Message.UPDATE, function (payload) {