there is no need to add 'poll_' prefix

This commit is contained in:
debris 2015-08-06 18:12:06 +02:00
parent 0fdfb0724c
commit cdb7ee6088

View File

@ -161,7 +161,7 @@ RequestManager.prototype.setProvider = function (p) {
* @todo cleanup number of params
*/
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 */
@ -172,7 +172,7 @@ RequestManager.prototype.startPolling = function (data, pollId, callback, uninst
* @param {Number} pollId
*/
RequestManager.prototype.stopPolling = function (pollId) {
delete this.polls['poll_'+ pollId];
delete this.polls[pollId];
};
/**