(runner, event, phase, data)
| 2666 | return runner; |
| 2667 | |
| 2668 | function notifyProgress(runner, event, phase, data) { |
| 2669 | runInNextPostDigestOrNow(function() { |
| 2670 | var callbacks = findCallbacks(parent, element, event); |
| 2671 | if (callbacks.length) { |
| 2672 | // do not optimize this call here to RAF because |
| 2673 | // we don't know how heavy the callback code here will |
| 2674 | // be and if this code is buffered then this can |
| 2675 | // lead to a performance regression. |
| 2676 | $$rAF(function() { |
| 2677 | forEach(callbacks, function(callback) { |
| 2678 | callback(element, phase, data); |
| 2679 | }); |
| 2680 | }); |
| 2681 | } |
| 2682 | }); |
| 2683 | runner.progress(event, phase, data); |
| 2684 | } |
| 2685 | |
| 2686 | function close(reject) { // jshint ignore:line |
| 2687 | clearGeneratedClasses(element, options); |
no test coverage detected