@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.esm.js CHANGED
@@ -180,19 +180,9 @@ const PopsCoreDefaultEnv = {
180
180
  window: window,
181
181
  globalThis: globalThis,
182
182
  self: self,
183
- setTimeout: globalThis.setTimeout.bind(globalThis),
184
- setInterval: globalThis.setInterval.bind(globalThis),
185
- clearTimeout: globalThis.clearTimeout.bind(globalThis),
186
- clearInterval: globalThis.clearInterval.bind(globalThis),
187
183
  };
188
184
  const PopsCoreEnv = Object.assign({}, PopsCoreDefaultEnv);
189
185
  const PopsCore = {
190
- init(option) {
191
- if (!option) {
192
- option = Object.assign({}, PopsCoreDefaultEnv);
193
- }
194
- Object.assign(PopsCoreEnv, option);
195
- },
196
186
  get document() {
197
187
  return PopsCoreEnv.document;
198
188
  },
@@ -205,18 +195,6 @@ const PopsCore = {
205
195
  get self() {
206
196
  return PopsCoreEnv.self;
207
197
  },
208
- get setTimeout() {
209
- return PopsCoreEnv.setTimeout;
210
- },
211
- get setInterval() {
212
- return PopsCoreEnv.setInterval;
213
- },
214
- get clearTimeout() {
215
- return PopsCoreEnv.clearTimeout;
216
- },
217
- get clearInterval() {
218
- return PopsCoreEnv.clearInterval;
219
- },
220
198
  };
221
199
  const OriginPrototype = {
222
200
  Object: {
@@ -738,7 +716,7 @@ class PopsUtils {
738
716
  return setTimeout$1(callback, timeout);
739
717
  }
740
718
  catch {
741
- return PopsCore.setTimeout(callback, timeout);
719
+ return setTimeout(callback, timeout);
742
720
  }
743
721
  }
744
722
  /**
@@ -754,7 +732,7 @@ class PopsUtils {
754
732
  // TODO
755
733
  }
756
734
  finally {
757
- PopsCore.clearTimeout(timeId);
735
+ clearTimeout(timeId);
758
736
  }
759
737
  }
760
738
  /**
@@ -765,7 +743,7 @@ class PopsUtils {
765
743
  return setInterval$1(callback, timeout);
766
744
  }
767
745
  catch {
768
- return PopsCore.setInterval(callback, timeout);
746
+ return setInterval(callback, timeout);
769
747
  }
770
748
  }
771
749
  /**
@@ -781,7 +759,7 @@ class PopsUtils {
781
759
  // 忽略
782
760
  }
783
761
  finally {
784
- PopsCore.clearInterval(timeId);
762
+ clearInterval(timeId);
785
763
  }
786
764
  }
787
765
  /**
@@ -13359,7 +13337,7 @@ const PopsSearchSuggestion = {
13359
13337
  },
13360
13338
  };
13361
13339
 
13362
- const version = "3.1.1";
13340
+ const version = "3.1.2";
13363
13341
 
13364
13342
  class Pops {
13365
13343
  /** 配置 */