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