Merge branch 'isSyncing' of github.com:ethereum/web3.js into isSyncing
This commit is contained in:
commit
194bc86ee0
|
@ -5846,9 +5846,13 @@ RequestManager.prototype.stopPolling = function (pollId) {
|
||||||
*/
|
*/
|
||||||
RequestManager.prototype.reset = function () {
|
RequestManager.prototype.reset = function () {
|
||||||
for (var key in this.polls) {
|
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) {
|
if (this.timeout) {
|
||||||
clearTimeout(this.timeout);
|
clearTimeout(this.timeout);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5846,9 +5846,13 @@ RequestManager.prototype.stopPolling = function (pollId) {
|
||||||
*/
|
*/
|
||||||
RequestManager.prototype.reset = function () {
|
RequestManager.prototype.reset = function () {
|
||||||
for (var key in this.polls) {
|
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) {
|
if (this.timeout) {
|
||||||
clearTimeout(this.timeout);
|
clearTimeout(this.timeout);
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -380,7 +380,7 @@ var toTwosComplement = function (number) {
|
||||||
* @return {Boolean}
|
* @return {Boolean}
|
||||||
*/
|
*/
|
||||||
var isStrictAddress = function (address) {
|
var isStrictAddress = function (address) {
|
||||||
return /^0x[0-9a-f]{40}$/.test(address);
|
return /^0x[0-9a-f]{40}$/i.test(address);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -391,7 +391,7 @@ var isStrictAddress = function (address) {
|
||||||
* @return {Boolean}
|
* @return {Boolean}
|
||||||
*/
|
*/
|
||||||
var isAddress = function (address) {
|
var isAddress = function (address) {
|
||||||
return /^(0x)?[0-9a-f]{40}$/.test(address);
|
return /^(0x)?[0-9a-f]{40}$/i.test(address);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue