()
| 2502 | } |
| 2503 | |
| 2504 | execute() { |
| 2505 | var fun; |
| 2506 | if (this.failed) { |
| 2507 | while ((fun = this.queue.shift())) { |
| 2508 | fun(this.failed); |
| 2509 | } |
| 2510 | } else { |
| 2511 | while ((fun = this.queue.shift())) { |
| 2512 | fun(); |
| 2513 | } |
| 2514 | } |
| 2515 | } |
| 2516 | |
| 2517 | fail(err) { |
| 2518 | this.failed = err; |