loader-rollup-min.js revision e371fe50702011b7021c8d79181e88184c23448b
YUI.add("loader-rollup",function(A){A.Loader.prototype._rollup=function(){var H,G,F,K,J={},B=this.required,D,E=this.moduleInfo,C,I;if(this.dirty||!this.rollups){for(H in E){if(E.hasOwnProperty(H)){F=this.getModule(H);if(F&&F.rollup){J[H]=F;}}}this.rollups=J;this.forceMap=(this.force)?A.Array.hash(this.force):{};}for(;;){C=false;for(H in J){if(J.hasOwnProperty(H)){if(!B[H]&&((!this.loaded[H])||this.forceMap[H])){F=this.getModule(H);K=F.supersedes||[];D=false;if(!F.rollup){continue;}I=0;for(G=0;G<K.length;G=G+1){if(this.loaded[K[G]]&&!this.forceMap[K[G]]){D=false;break;}else{if(B[K[G]]){I++;D=(I>=F.rollup);if(D){break;}}}}if(D){B[H]=true;C=true;this.getRequires(F);}}}}if(!C){break;}}};},"@VERSION@",{requires:["loader-base"]});