( last )
| 923 | } |
| 924 | |
| 925 | function process( last ) { |
| 926 | var start = new Date().getTime(); |
| 927 | config.depth = config.depth ? config.depth + 1 : 1; |
| 928 | |
| 929 | while ( config.queue.length && !config.blocking ) { |
| 930 | if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) { |
| 931 | config.queue.shift()(); |
| 932 | } else { |
| 933 | window.setTimeout( function(){ |
| 934 | process( last ); |
| 935 | }, 13 ); |
| 936 | break; |
| 937 | } |
| 938 | } |
| 939 | config.depth--; |
| 940 | if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) { |
| 941 | done(); |
| 942 | } |
| 943 | } |
| 944 | |
| 945 | function saveGlobal() { |
| 946 | config.pollution = []; |
no test coverage detected
searching dependent graphs…