()
| 2497 | } |
| 2498 | |
| 2499 | execute() { |
| 2500 | var fun; |
| 2501 | if (this.failed) { |
| 2502 | while ((fun = this.queue.shift())) { |
| 2503 | fun(this.failed); |
| 2504 | } |
| 2505 | } else { |
| 2506 | while ((fun = this.queue.shift())) { |
| 2507 | fun(); |
| 2508 | } |
| 2509 | } |
| 2510 | } |
| 2511 | |
| 2512 | fail(err) { |
| 2513 | this.failed = err; |