summaryrefslogtreecommitdiffstats
path: root/js/yui/event-delegate
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-18 10:00:38 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-18 10:00:38 +0200
commit7ae63b1e06f607ede3ed32829ac9316e4c657247 (patch)
tree2d347681207e337dad6ad21ec15a319b6a734a62 /js/yui/event-delegate
parent3eb535037ca7ef9ea026cc7799fa0e7d93438089 (diff)
downloadbugzilla-7ae63b1e06f607ede3ed32829ac9316e4c657247.tar.gz
bugzilla-7ae63b1e06f607ede3ed32829ac9316e4c657247.tar.xz
Bug 572949: Update YUI to 2.8.1
r=glob, a=mkanat
Diffstat (limited to 'js/yui/event-delegate')
-rw-r--r--js/yui/event-delegate/event-delegate-min.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/yui/event-delegate/event-delegate-min.js b/js/yui/event-delegate/event-delegate-min.js
new file mode 100644
index 000000000..5d5e5f793
--- /dev/null
+++ b/js/yui/event-delegate/event-delegate-min.js
@@ -0,0 +1,7 @@
+/*
+Copyright (c) 2010, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.com/yui/license.html
+version: 2.8.1
+*/
+(function(){var A=YAHOO.util.Event,C=YAHOO.lang,B=[],D=function(H,E,F){var G;if(!H||H===F){G=false;}else{G=YAHOO.util.Selector.test(H,E)?H:D(H.parentNode,E,F);}return G;};C.augmentObject(A,{_createDelegate:function(F,E,G,H){return function(I){var J=this,N=A.getTarget(I),L=E,P=(J.nodeType===9),Q,K,O,M;if(C.isFunction(E)){Q=E(N);}else{if(C.isString(E)){if(!P){O=J.id;if(!O){O=A.generateId(J);}M=("#"+O+" ");L=(M+E).replace(/,/gi,(","+M));}if(YAHOO.util.Selector.test(N,L)){Q=N;}else{if(YAHOO.util.Selector.test(N,((L.replace(/,/gi," *,"))+" *"))){Q=D(N,L,J);}}}}if(Q){K=Q;if(H){if(H===true){K=G;}else{K=H;}}return F.call(K,I,Q,J,G);}};},delegate:function(F,J,L,G,H,I){var E=J,K,M;if(C.isString(G)&&!YAHOO.util.Selector){return false;}if(J=="mouseenter"||J=="mouseleave"){if(!A._createMouseDelegate){return false;}E=A._getType(J);K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return K.call(O,P,N);},G,H,I);}else{M=A._createDelegate(L,G,H,I);}B.push([F,E,L,M]);return A.on(F,E,M);},removeDelegate:function(F,J,I){var K=J,H=false,G,E;if(J=="mouseenter"||J=="mouseleave"){K=A._getType(J);}G=A._getCacheIndex(B,F,K,I);if(G>=0){E=B[G];}if(F&&E){H=A.removeListener(E[0],E[1],E[3]);if(H){delete B[G][2];delete B[G][3];B.splice(G,1);}}return H;}});}());YAHOO.register("event-delegate",YAHOO.util.Event,{version:"2.8.1",build:"19"}); \ No newline at end of file