(mod, traced, processed)
| 608 | } |
| 609 | |
| 610 | function breakCycle(mod, traced, processed) { |
| 611 | var id = mod.map.id; |
| 612 | |
| 613 | if (mod.error) { |
| 614 | mod.emit('error', mod.error); |
| 615 | } else { |
| 616 | traced[id] = true; |
| 617 | each(mod.depMaps, function (depMap, i) { |
| 618 | var depId = depMap.id, |
| 619 | dep = getOwn(registry, depId); |
| 620 | |
| 621 | //Only force things that have not completed |
| 622 | //being defined, so still in the registry, |
| 623 | //and only if it has not been matched up |
| 624 | //in the module already. |
| 625 | if (dep && !mod.depMatched[i] && !processed[depId]) { |
| 626 | if (getOwn(traced, depId)) { |
| 627 | mod.defineDep(i, defined[depId]); |
| 628 | mod.check(); //pass false? |
| 629 | } else { |
| 630 | breakCycle(dep, traced, processed); |
| 631 | } |
| 632 | } |
| 633 | }); |
| 634 | processed[id] = true; |
| 635 | } |
| 636 | } |
| 637 | |
| 638 | function checkLoaded() { |
| 639 | var err, usingPathFallback, |
no test coverage detected