@whitesev/pops 3.1.1 → 3.1.2

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.
@@ -185,19 +185,9 @@ System.register('pops', [], (function (exports) {
185
185
  window: window,
186
186
  globalThis: globalThis,
187
187
  self: self,
188
- setTimeout: globalThis.setTimeout.bind(globalThis),
189
- setInterval: globalThis.setInterval.bind(globalThis),
190
- clearTimeout: globalThis.clearTimeout.bind(globalThis),
191
- clearInterval: globalThis.clearInterval.bind(globalThis),
192
188
  };
193
189
  const PopsCoreEnv = Object.assign({}, PopsCoreDefaultEnv);
194
190
  const PopsCore = {
195
- init(option) {
196
- if (!option) {
197
- option = Object.assign({}, PopsCoreDefaultEnv);
198
- }
199
- Object.assign(PopsCoreEnv, option);
200
- },
201
191
  get document() {
202
192
  return PopsCoreEnv.document;
203
193
  },
@@ -210,18 +200,6 @@ System.register('pops', [], (function (exports) {
210
200
  get self() {
211
201
  return PopsCoreEnv.self;
212
202
  },
213
- get setTimeout() {
214
- return PopsCoreEnv.setTimeout;
215
- },
216
- get setInterval() {
217
- return PopsCoreEnv.setInterval;
218
- },
219
- get clearTimeout() {
220
- return PopsCoreEnv.clearTimeout;
221
- },
222
- get clearInterval() {
223
- return PopsCoreEnv.clearInterval;
224
- },
225
203
  };
226
204
  const OriginPrototype = {
227
205
  Object: {
@@ -743,7 +721,7 @@ System.register('pops', [], (function (exports) {
743
721
  return setTimeout$1(callback, timeout);
744
722
  }
745
723
  catch {
746
- return PopsCore.setTimeout(callback, timeout);
724
+ return setTimeout(callback, timeout);
747
725
  }
748
726
  }
749
727
  /**
@@ -759,7 +737,7 @@ System.register('pops', [], (function (exports) {
759
737
  // TODO
760
738
  }
761
739
  finally {
762
- PopsCore.clearTimeout(timeId);
740
+ clearTimeout(timeId);
763
741
  }
764
742
  }
765
743
  /**
@@ -770,7 +748,7 @@ System.register('pops', [], (function (exports) {
770
748
  return setInterval$1(callback, timeout);
771
749
  }
772
750
  catch {
773
- return PopsCore.setInterval(callback, timeout);
751
+ return setInterval(callback, timeout);
774
752
  }
775
753
  }
776
754
  /**
@@ -786,7 +764,7 @@ System.register('pops', [], (function (exports) {
786
764
  // 忽略
787
765
  }
788
766
  finally {
789
- PopsCore.clearInterval(timeId);
767
+ clearInterval(timeId);
790
768
  }
791
769
  }
792
770
  /**
@@ -13364,7 +13342,7 @@ System.register('pops', [], (function (exports) {
13364
13342
  },
13365
13343
  };
13366
13344
 
13367
- const version = "3.1.1";
13345
+ const version = "3.1.2";
13368
13346
 
13369
13347
  class Pops {
13370
13348
  /** 配置 */