mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 11:38:12 +00:00
there is no need to add 'poll_' prefix
This commit is contained in:
parent
0fdfb0724c
commit
cdb7ee6088
@ -161,7 +161,7 @@ RequestManager.prototype.setProvider = function (p) {
|
|||||||
* @todo cleanup number of params
|
* @todo cleanup number of params
|
||||||
*/
|
*/
|
||||||
RequestManager.prototype.startPolling = function (data, pollId, callback, uninstall) {
|
RequestManager.prototype.startPolling = function (data, pollId, callback, uninstall) {
|
||||||
this.polls['poll_'+ pollId] = {data: data, id: pollId, callback: callback, uninstall: uninstall};
|
this.polls[pollId] = {data: data, id: pollId, callback: callback, uninstall: uninstall};
|
||||||
};
|
};
|
||||||
/*jshint maxparams:3 */
|
/*jshint maxparams:3 */
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ RequestManager.prototype.startPolling = function (data, pollId, callback, uninst
|
|||||||
* @param {Number} pollId
|
* @param {Number} pollId
|
||||||
*/
|
*/
|
||||||
RequestManager.prototype.stopPolling = function (pollId) {
|
RequestManager.prototype.stopPolling = function (pollId) {
|
||||||
delete this.polls['poll_'+ pollId];
|
delete this.polls[pollId];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user