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