Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1985 from zazabe/promise-throttler-remove
Browse files Browse the repository at this point in the history
Add a method to remove stored throttler Promises
  • Loading branch information
zazabe committed Nov 10, 2015
2 parents 3741219 + 469bf61 commit a89e090
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client-vendor/after-body/promise-throttler/promise-throttler.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@
return storage[namespace];
}

/**
* @param {String} namespace
*/
function removeThrottler(namespace) {
if (storage[namespace]) {
delete storage[namespace];
}
}

global.promiseThrottler = promiseThrottler;
global.removePromiseThrottler = removeThrottler;

})(window);

0 comments on commit a89e090

Please sign in to comment.