@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.
@@ -183,19 +183,9 @@ var pops = (function () {
183
183
  window: window,
184
184
  globalThis: globalThis,
185
185
  self: self,
186
- setTimeout: globalThis.setTimeout.bind(globalThis),
187
- setInterval: globalThis.setInterval.bind(globalThis),
188
- clearTimeout: globalThis.clearTimeout.bind(globalThis),
189
- clearInterval: globalThis.clearInterval.bind(globalThis),
190
186
  };
191
187
  const PopsCoreEnv = Object.assign({}, PopsCoreDefaultEnv);
192
188
  const PopsCore = {
193
- init(option) {
194
- if (!option) {
195
- option = Object.assign({}, PopsCoreDefaultEnv);
196
- }
197
- Object.assign(PopsCoreEnv, option);
198
- },
199
189
  get document() {
200
190
  return PopsCoreEnv.document;
201
191
  },
@@ -208,18 +198,6 @@ var pops = (function () {
208
198
  get self() {
209
199
  return PopsCoreEnv.self;
210
200
  },
211
- get setTimeout() {
212
- return PopsCoreEnv.setTimeout;
213
- },
214
- get setInterval() {
215
- return PopsCoreEnv.setInterval;
216
- },
217
- get clearTimeout() {
218
- return PopsCoreEnv.clearTimeout;
219
- },
220
- get clearInterval() {
221
- return PopsCoreEnv.clearInterval;
222
- },
223
201
  };
224
202
  const OriginPrototype = {
225
203
  Object: {
@@ -741,7 +719,7 @@ var pops = (function () {
741
719
  return setTimeout$1(callback, timeout);
742
720
  }
743
721
  catch {
744
- return PopsCore.setTimeout(callback, timeout);
722
+ return setTimeout(callback, timeout);
745
723
  }
746
724
  }
747
725
  /**
@@ -757,7 +735,7 @@ var pops = (function () {
757
735
  // TODO
758
736
  }
759
737
  finally {
760
- PopsCore.clearTimeout(timeId);
738
+ clearTimeout(timeId);
761
739
  }
762
740
  }
763
741
  /**
@@ -768,7 +746,7 @@ var pops = (function () {
768
746
  return setInterval$1(callback, timeout);
769
747
  }
770
748
  catch {
771
- return PopsCore.setInterval(callback, timeout);
749
+ return setInterval(callback, timeout);
772
750
  }
773
751
  }
774
752
  /**
@@ -784,7 +762,7 @@ var pops = (function () {
784
762
  // 忽略
785
763
  }
786
764
  finally {
787
- PopsCore.clearInterval(timeId);
765
+ clearInterval(timeId);
788
766
  }
789
767
  }
790
768
  /**
@@ -13362,7 +13340,7 @@ var pops = (function () {
13362
13340
  },
13363
13341
  };
13364
13342
 
13365
- const version = "3.1.1";
13343
+ const version = "3.1.2";
13366
13344
 
13367
13345
  class Pops {
13368
13346
  /** 配置 */