1234567891011121314151617181920212223242526272829 |
- module.exports = abort;
- function abort(state)
- {
- Object.keys(state.jobs).forEach(clean.bind(state));
-
- state.jobs = {};
- }
- function clean(key)
- {
- if (typeof this.jobs[key] == 'function')
- {
- this.jobs[key]();
- }
- }
|