(q, e)
| 87 | } |
| 88 | |
| 89 | function abort(q, e) { |
| 90 | var i = q._tasks.length, t; |
| 91 | q._error = e; // ignore active callbacks |
| 92 | q._data = undefined; // allow gc |
| 93 | q._waiting = NaN; // prevent starting |
| 94 | |
| 95 | while (--i >= 0) { |
| 96 | if (t = q._tasks[i]) { |
| 97 | q._tasks[i] = null; |
| 98 | if (t.abort) { |
| 99 | try { t.abort(); } |
| 100 | catch (e) { /* ignore */ } |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | q._active = NaN; // allow notification |
| 106 | maybeNotify(q); |
| 107 | } |
| 108 | |
| 109 | function maybeNotify(q) { |
| 110 | if (!q._active && q._call) { |
no test coverage detected
searching dependent graphs…