summaryrefslogtreecommitdiffstats
path: root/js/yui/swfdetect
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/swfdetect
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/swfdetect')
-rw-r--r--js/yui/swfdetect/swfdetect-min.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/yui/swfdetect/swfdetect-min.js b/js/yui/swfdetect/swfdetect-min.js
new file mode 100644
index 000000000..b76b7e549
--- /dev/null
+++ b/js/yui/swfdetect/swfdetect-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
+*/
+YAHOO.namespace("util");(function(){var A=0;var B=YAHOO.env.ua;var C="ShockwaveFlash";if(B.gecko||B.webkit||B.opera){if((mF=navigator.mimeTypes["application/x-shockwave-flash"])){if((eP=mF.enabledPlugin)){var G=[];G=eP.description.replace(/\s[rd]/g,".").replace(/[A-Za-z\s]+/g,"").split(".");A=G[0]+".";switch((G[2].toString()).length){case 1:A+="00";break;case 2:A+="0";break;}A+=G[2];A=parseFloat(A);}}}else{if(B.ie){try{var D=new ActiveXObject(C+"."+C+".6");D.AllowScriptAccess="always";}catch(F){if(D!=null){A=6;}}if(A==0){try{var E=new ActiveXObject(C+"."+C);var G=[];G=E.GetVariable("$version").replace(/[A-Za-z\s]+/g,"").split(",");A=G[0]+".";switch((G[2].toString()).length){case 1:A+="00";break;case 2:A+="0";break;}A+=G[2];A=parseFloat(A);}catch(F){}}}}B.flash=A;YAHOO.util.SWFDetect={getFlashVersion:function(){return A;},isFlashVersionAtLeast:function(H){return A>=H;}};})();YAHOO.register("swfdetect",YAHOO.util.SWFDetect,{version:"2.8.1",build:"19"}); \ No newline at end of file