mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 03:28:07 +00:00
prevent web3.reset from removing isSyncing polls
This commit is contained in:
parent
21be9f829b
commit
d70df3626a
8
dist/web3-light.js
vendored
8
dist/web3-light.js
vendored
@ -5846,9 +5846,13 @@ RequestManager.prototype.stopPolling = function (pollId) {
|
||||
*/
|
||||
RequestManager.prototype.reset = function () {
|
||||
for (var key in this.polls) {
|
||||
this.polls[key].uninstall();
|
||||
// remove all polls, except sync polls,
|
||||
// they need to be removed manually by calling syncing.stopWatching()
|
||||
if(key.indexOf('syncPoll_') === -1) {
|
||||
this.polls[key].uninstall();
|
||||
delete this.polls[key];
|
||||
}
|
||||
}
|
||||
this.polls = {};
|
||||
|
||||
if (this.timeout) {
|
||||
clearTimeout(this.timeout);
|
||||
|
5
dist/web3-light.min.js
vendored
5
dist/web3-light.min.js
vendored
File diff suppressed because one or more lines are too long
8
dist/web3.js
vendored
8
dist/web3.js
vendored
@ -5846,9 +5846,13 @@ RequestManager.prototype.stopPolling = function (pollId) {
|
||||
*/
|
||||
RequestManager.prototype.reset = function () {
|
||||
for (var key in this.polls) {
|
||||
this.polls[key].uninstall();
|
||||
// remove all polls, except sync polls,
|
||||
// they need to be removed manually by calling syncing.stopWatching()
|
||||
if(key.indexOf('syncPoll_') === -1) {
|
||||
this.polls[key].uninstall();
|
||||
delete this.polls[key];
|
||||
}
|
||||
}
|
||||
this.polls = {};
|
||||
|
||||
if (this.timeout) {
|
||||
clearTimeout(this.timeout);
|
||||
|
117
dist/web3.js.map
vendored
Normal file
117
dist/web3.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
5
dist/web3.min.js
vendored
5
dist/web3.min.js
vendored
File diff suppressed because one or more lines are too long
@ -179,9 +179,13 @@ RequestManager.prototype.stopPolling = function (pollId) {
|
||||
*/
|
||||
RequestManager.prototype.reset = function () {
|
||||
for (var key in this.polls) {
|
||||
this.polls[key].uninstall();
|
||||
// remove all polls, except sync polls,
|
||||
// they need to be removed manually by calling syncing.stopWatching()
|
||||
if(key.indexOf('syncPoll_') === -1) {
|
||||
this.polls[key].uninstall();
|
||||
delete this.polls[key];
|
||||
}
|
||||
}
|
||||
this.polls = {};
|
||||
|
||||
if (this.timeout) {
|
||||
clearTimeout(this.timeout);
|
||||
|
Loading…
x
Reference in New Issue
Block a user