()
| 827 | } |
| 828 | |
| 829 | function process() { |
| 830 | var start = (new Date()).getTime(); |
| 831 | |
| 832 | while ( config.queue.length && !config.blocking ) { |
| 833 | if ( config.updateRate <= 0 || (((new Date()).getTime() - start) < config.updateRate) ) { |
| 834 | config.queue.shift()(); |
| 835 | } else { |
| 836 | window.setTimeout( process, 13 ); |
| 837 | break; |
| 838 | } |
| 839 | } |
| 840 | if (!config.blocking && !config.queue.length) { |
| 841 | done(); |
| 842 | } |
| 843 | } |
| 844 | |
| 845 | function saveGlobal() { |
| 846 | config.pollution = []; |
no test coverage detected