collection-min.js revision c7f25ad31c50e9c88e0c2712ee0c2f647e46f073
6aaa468f50af23f08685835d1984767b81a4446aDerek GathrightYUI.add("collection",function(E){var C=E.Lang,D=Array.prototype,B=E.Array;B.some=(D.forEach)?function(A,F,G){D.some.call(A,F,G||E);return E;}:function(F,H,I){var A=F.length,G;for(G=0;G<A;G=G+1){if(H.call(I,F[G],G,F)){return true;}}return false;};B.lastIndexOf=(D.lastIndexOf)?function(A,F){return A.lastIndexOf(F);}:function(A,G){for(var F=A.length-1;F>=0;F=F-1){if(A[F]===G){break;}}return F;};B.unique=function(F,H){var I=C.isValue(H)?H:true,A=F.slice(),G=0,K=-1,J=null;if(I){A.sort();while(G<A.length){if(A[G]===J){K=(K==-1?G:K);G+=1;}else{if(I!==-1){A.splice(K,G-K);G=K;K=-1;}else{J=A[G];G+=1;}}}return A;}else{while(G<A.length){J=A[G];while((K=A.lastIndexOf(J))!==G){A.splice(K,1);}G+=1;}return A;}};},"@VERSION@");