()
| 539 | if (idx >= 0) listeners.splice(idx, 1); |
| 540 | } |
| 541 | function taskComplete() { |
| 542 | remainingTasks--; |
| 543 | _arrayEach(listeners.slice(0), function (fn) { |
| 544 | fn(); |
| 545 | }); |
| 546 | } |
| 547 | |
| 548 | addListener(function () { |
| 549 | if (!remainingTasks) { |
nothing calls this directly
no test coverage detected