(runner, event, phase, data)
| 2688 | return runner; |
| 2689 | |
| 2690 | function notifyProgress(runner, event, phase, data) { |
| 2691 | runInNextPostDigestOrNow(function() { |
| 2692 | var callbacks = findCallbacks(parent, element, event); |
| 2693 | if (callbacks.length) { |
| 2694 | // do not optimize this call here to RAF because |
| 2695 | // we don't know how heavy the callback code here will |
| 2696 | // be and if this code is buffered then this can |
| 2697 | // lead to a performance regression. |
| 2698 | $$rAF(function() { |
| 2699 | forEach(callbacks, function(callback) { |
| 2700 | callback(element, phase, data); |
| 2701 | }); |
| 2702 | cleanupEventListeners(phase, element); |
| 2703 | }); |
| 2704 | } else { |
| 2705 | cleanupEventListeners(phase, element); |
| 2706 | } |
| 2707 | }); |
| 2708 | runner.progress(event, phase, data); |
| 2709 | } |
| 2710 | |
| 2711 | function close(reject) { |
| 2712 | clearGeneratedClasses(element, options); |
no test coverage detected