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