diff -r 000000000000 -r 40c8f766c9b8 src/cm/media/js/lib/yui/yui_3.0.0b1/build/event/event-min.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.0.0b1/build/event/event-min.js Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,11 @@ +/* +Copyright (c) 2009, Yahoo! Inc. All rights reserved. +Code licensed under the BSD License: +http://developer.yahoo.net/yui/license.txt +version: 3.0.0b1 +build: 1163 +*/ +(function(){var GLOBAL_ENV=YUI.Env,C=YUI.config,D=C.doc,POLL_INTERVAL=C.pollInterval||40,_ready=function(e){GLOBAL_ENV._ready();};if(!GLOBAL_ENV._ready){GLOBAL_ENV._ready=function(){if(!GLOBAL_ENV.DOMReady){GLOBAL_ENV.DOMReady=true;if(D.removeEventListener){D.removeEventListener("DOMContentLoaded",_ready,false);}}}; +/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */ +if(navigator.userAgent.match(/MSIE/)){GLOBAL_ENV._dri=setInterval(function(){try{document.documentElement.doScroll("left");clearInterval(GLOBAL_ENV._dri);GLOBAL_ENV._dri=null;_ready();}catch(ex){}},POLL_INTERVAL);}else{D.addEventListener("DOMContentLoaded",_ready,false);}}})();YUI.add("event",function(F){(function(){var I=YUI.Env,G=F.Env.evt.plugins,H=function(){F.fire("domready");};F.mix(G,{domready:{},"event:ready":{on:function(){var J=F.Array(arguments,0,true);J[0]="domready";return F.subscribe.apply(F,J);},detach:function(){var J=F.Array(arguments,0,true);J[0]="domready";return F.unsubscribe.apply(F,J);}}});F.publish("domready",{fireOnce:true});if(I.DOMReady){H();}else{F.before(H,I,"_ready");}})();(function(){var H=F.UA,G={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},I=function(K){if(!K){return null;}try{if(H.webkit&&3==K.nodeType){K=K.parentNode;}}catch(J){}return F.Node.get(K);};F.DOMEventFacade=function(Q,K,J){var M=Q,L=K,N=F.config.doc,R=N.body,S=M.pageX,P=M.pageY,O,T;this.altKey=M.altKey;this.ctrlKey=M.ctrlKey;this.metaKey=M.metaKey;this.shiftKey=M.shiftKey;this.type=M.type;if(!S&&0!==S){S=M.clientX||0;P=M.clientY||0;if(H.ie){S+=Math.max(N.documentElement.scrollLeft,R.scrollLeft);P+=Math.max(N.documentElement.scrollTop,R.scrollTop);}}this._yuifacade=true;this.pageX=S;this.pageY=P;O=M.keyCode||M.charCode||0;if(H.webkit&&(O in G)){O=G[O];}this.keyCode=O;this.charCode=O;this.button=M.which||M.button;this.which=this.button;this.target=I(M.target||M.srcElement);this.currentTarget=I(L);T=M.relatedTarget;if(!T){if(M.type=="mouseout"){T=M.toElement;}else{if(M.type=="mouseover"){T=M.fromElement;}}}this.relatedTarget=I(T);this.stopPropagation=function(){if(M.stopPropagation){M.stopPropagation();}else{M.cancelBubble=true;}if(J){J.stopPropagation();}};this.stopImmediatePropagation=function(){if(M.stopImmediatePropagation){M.stopImmediatePropagation();}else{this.stopPropagation();}if(J){J.stopImmediatePropagation();}};this.preventDefault=function(){if(M.preventDefault){M.preventDefault();}else{M.returnValue=false;}if(J){J.preventDefault();}};this.halt=function(U){if(U){this.stopImmediatePropagation();}else{this.stopPropagation();}this.preventDefault();};};})();(function(){var M=YUI.Env.add,G=YUI.Env.remove,K=function(){YUI.Env.windowLoaded=true;F.Event._load();G(window,"load",K);},J=function(){F.Event._unload();G(window,"unload",J);},N="domready",L="~yui|2|compat~",I=function(P){try{return(P&&typeof P!=="string"&&(P.length&&((!P.size)||(P.size()>1)))&&!P.tagName&&!P.alert&&(P.item||typeof P[0]!=="undefined"));}catch(O){return false;}},H=function(){var Q=false,R=0,P=[],S={},O=null,T={};return{POLL_RETRYS:1000,POLL_INTERVAL:40,lastError:null,_interval:null,_dri:null,DOMReady:false,startInterval:function(){var U=F.Event;if(!U._interval){U._interval=setInterval(F.bind(U._poll,U),U.POLL_INTERVAL);}},onAvailable:function(c,X,b,Z,Y,V){var U=F.Array(c),W;for(W=0;W0);}Y=[];a=function(d,e){var c,b=e.override;if(e.compat){if(e.override){if(b===true){c=e.obj;}else{c=b;}}else{c=d;}e.fn.call(c,e.obj);}else{c=e.obj||F.get(d);e.fn.apply(c,(F.Lang.isArray(b))?b:[]);}};for(V=0,U=P.length; +V4?F.Array(arguments,4,true):[];return F.Event.onAvailable.call(F.Event,K,H,J,G);}};F.Env.evt.plugins.contentready={on:function(I,H,K,J){var G=arguments.length>4?F.Array(arguments,4,true):[];return F.Event.onContentReady.call(F.Event,K,H,J,G);}};(function(){var I=F.Env.evt.plugins,J={capture:true},H=function(){},G=function(L,N){var K=(F.Lang.isString(N))?F.Selector.query(N,null,true):N,M=K&&K.parentNode;if(M){F.Event._attach([L,H,M],J);}};I.focus={on:function(M,L,N){var K=F.Array(arguments,0,true);if(F.UA.opera){G(M,N);}return F.Event._attach(K,J);}};I.blur={on:function(M,L,N){var K=F.Array(arguments,0,true);if(F.UA.opera){G(M,N);}return F.Event._attach(K,J);}};})();F.Env.evt.plugins.key={on:function(J,L,G,P,H){var N=F.Array(arguments,0,true),K,O,M,I;if(!P||P.indexOf(":")==-1){N[0]="keypress";return F.on.apply(F,N);}K=P.split(":");O=K[0];M=(K[1])?K[1].split(/,|\+/):null;I=(F.Lang.isString(G)?G:F.stamp(G))+P;I=I.replace(/,/g,"_");if(!F.getEvent(I)){F.on(J+O,function(U){var V=false,R=false,S,Q,T;for(S=0;S0){S=M.length-1;do{N=M[S];if(N===V||F.DOM.contains(N,V)){if(!W){W=new F.DOMEventFacade(U,P);W.container=W.currentTarget;}W.currentTarget=F.Node.get(N);F.fire(R,W);}}while(S--);}}}},G=function(O,N,M){F.Event._attach([O,function(P){H(N,(P||window.event),M);},M],{facade:false});},K=F.cached(function(M){return M.replace(/[|,:]/g,"~");});F.Env.evt.plugins.delegate={on:function(R,T,O,M,V){if(!V){return false;}var S=(L.isString(O)?O:F.stamp(O)),P="delegate:"+S+M+K(V),N=M+S,U=F.Array(arguments,0,true),Q;if(!(N in J)){if(L.isString(O)){Q=F.Selector.query(O);}else{Q=F.Node.getDOMNode(O);}if(L.isArray(Q)){F.Array.each(Q,function(W){G(M,N,W);});}else{G(M,N,Q);}J[N]={};}J[N][V]=P;U[0]=P;U.splice(2,3);return F.on.apply(F,U);}};})();(function(){var H,G,J="window:resize",I=function(K){if(F.UA.gecko){F.fire(J,K);}else{if(G){G.cancel();}G=F.later(F.config.windowResizeDelay||40,F,function(){F.fire(J,K);});}};F.Env.evt.plugins.windowresize={on:function(M,L){if(!H){H=F.Event._attach(["resize",I]);}var K=F.Array(arguments,0,true);K[0]=J;return F.on.apply(F,K);}};})();var A=F.Lang.isString,C=function(J,G,I,K,H){if(!J.compareTo(G)&&!J.contains(G)){K.container=K.currentTarget;K.currentTarget=J;F.fire(I,K);}},D=function(L,I,H){var G=L.relatedTarget,K=L.currentTarget,J=L.target;if(H){K.queryAll(H).some(function(M){var N;if(M.compareTo(J)||M.contains(J)){C(M,G,I,L,H);N=true;}return N;});}else{C(K,G,I,L);}},E=F.cached(function(G){return G.replace(/[|,:]/g,"~");}),B={on:function(L,K,J,H){var G=(L==="mouseenter")?"mouseover":"mouseout",M=L+":"+(A(J)?J:F.stamp(J))+G,I=F.Array(arguments,0,true),N;if(A(H)){N=H;M=M+E(N);}if(!F.getEvent(M)){F.on(G,function(O){D(O,M,N);},J);}I[0]=M;if(N){I.splice(2,2);}else{I.splice(2,1);}return F.on.apply(F,I);}};F.Env.evt.plugins.mouseenter=B;F.Env.evt.plugins.mouseleave=B;},"3.0.0b1",{requires:["event-custom"]}); \ No newline at end of file