oop-min.js revision e0a1d83ad86620d8fd4e2bfa3c4ec5c0944a002a
YUI.add("oop",function(G){var E=G.Lang,D=G.Array,C=Object.prototype,B="_~yuim~_",F=function(J,I,K,A,H){if(J[H]&&J.item){return J[H].call(J,I,K);}else{switch(D.test(J)){case 1:return D[H](J,I,K);case 2:return D[H](G.Array(J,0,true),I,K);default:return G.Object[H](J,I,K,A);}}};G.augment=function(A,U,J,S,O){var M=U.prototype,Q=null,T=U,P=(O)?G.Array(O):[],I=A.prototype,N=I||A,R=false,H,K,L;if(I&&T){H={};K={};Q={};G.each(M,function(W,V){K[V]=function(){for(L in H){if(H.hasOwnProperty(L)&&(this[L]===K[L])){this[L]=H[L];}}T.apply(this,P);return H[V].apply(this,arguments);};if((!S||(V in S))&&(J||!(V in this))){if(E.isFunction(W)){H[V]=W;this[V]=K[V];}else{this[V]=W;}}},Q,true);}else{R=true;}G.mix(N,Q||M,J,S);if(R){U.apply(N,P);}return A;};G.aggregate=function(I,H,A,J){return G.mix(I,H,A,J,0,true);};G.extend=function(J,I,A,L){if(!I||!J){G.error("extend failed, verify dependencies");}var K=I.prototype,H=G.Object(K);J.prototype=H;H.constructor=J;J.superclass=K;if(I!=Object&&K.constructor==C.constructor){K.constructor=I;}if(A){G.mix(H,A,true);}if(L){G.mix(J,L,true);}return J;};G.each=function(I,H,J,A){return F(I,H,J,A,"each");};G.some=function(I,H,J,A){return F(I,H,J,A,"some");};G.clone=function(J,K,N,O,I,M){if(!E.isObject(J)){return J;}var L,H=M||{},A;switch(E.type(J)){case"date":return new Date(J);case"regexp":return new RegExp(J.source);case"function":L=G.bind(J,I);break;case"array":L=[];break;default:if(J[B]){return H[J[B]];}A=G.guid();L=(K)?{}:G.Object(J);J[B]=A;H[A]=J;}if(!J.addEventListener&&!J.attachEvent){G.each(J,function(Q,P){if(!N||(N.call(O||this,Q,P,this,J)!==false)){if(P!==B){this[P]=G.clone(Q,K,N,O,I||J,H);}}},L);}if(!M){G.each(H,function(Q,P){delete Q[B];});H=null;}return L;};G.bind=function(A,I){var H=arguments.length>2?G.Array(arguments,2,true):null;return function(){var K=E.isString(A)?I[A]:A,J=(H)?H.concat(G.Array(arguments,0,true)):arguments;return K.apply(I||K,J);};};G.rbind=function(A,I){var H=arguments.length>2?G.Array(arguments,2,true):null;return function(){var K=E.isString(A)?I[A]:A,J=(H)?G.Array(arguments,0,true).concat(H):arguments;return K.apply(I||K,J);};};},"@VERSION@");