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