()
| 776 | } |
| 777 | |
| 778 | function process() { |
| 779 | var start = (new Date()).getTime(); |
| 780 | |
| 781 | while ( config.queue.length && !config.blocking ) { |
| 782 | if ( config.updateRate <= 0 || (((new Date()).getTime() - start) < config.updateRate) ) { |
| 783 | config.queue.shift()(); |
| 784 | } else { |
| 785 | window.setTimeout( process, 13 ); |
| 786 | break; |
| 787 | } |
| 788 | } |
| 789 | if (!config.blocking && !config.queue.length) { |
| 790 | done(); |
| 791 | } |
| 792 | } |
| 793 | |
| 794 | function saveGlobal() { |
| 795 | config.pollution = []; |
no test coverage detected