( last )
| 1222 | } |
| 1223 | |
| 1224 | function process( last ) { |
| 1225 | function next() { |
| 1226 | process( last ); |
| 1227 | } |
| 1228 | var start = new Date().getTime(); |
| 1229 | config.depth = config.depth ? config.depth + 1 : 1; |
| 1230 | |
| 1231 | while ( config.queue.length && !config.blocking ) { |
| 1232 | if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) { |
| 1233 | config.queue.shift()(); |
| 1234 | } else { |
| 1235 | window.setTimeout( next, 13 ); |
| 1236 | break; |
| 1237 | } |
| 1238 | } |
| 1239 | config.depth--; |
| 1240 | if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) { |
| 1241 | done(); |
| 1242 | } |
| 1243 | } |
| 1244 | |
| 1245 | function saveGlobal() { |
| 1246 | config.pollution = []; |
no test coverage detected
searching dependent graphs…