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