%PDF- %PDF-
Direktori : /proc/985914/root/data/old/home/stash/atlassian-stash/static/util/ |
Current File : //proc/985914/root/data/old/home/stash/atlassian-stash/static/util/feature-detect-min.js |
define("util/feature-detect",["underscore","exports"],function(J,F){var L=["ms","moz","webkit","o"];function A(N){var M=N.charAt(0).toUpperCase()+N.substring(1);return[N].concat(J.map(L,function(O){return O+M}))}var H=J.once(function(){try{window.localStorage.setItem("___stash_test","true");window.localStorage.removeItem("___stash_test");return true}catch(M){console&&console.log("Note: localStorage not supported in this browser.");return false}});var B=J.once(function(){var M=document.createElement("canvas");return(typeof M.getContext==="function")&&!!M.getContext("2d")});var C=J.once(function(){return !!(window.File&&window.FileList&&window.FileReader)});var I=J.once(function(){return"a1a".split(/(\d)/).length===3});var E=J.once(function(){return J.find(A("transform"),function(M){return document.body.style[M]!==undefined})});var G=J.once(function(){return"classList" in document.documentElement});var K={"pointer-events":function(){var M=document.createElement("x");M.style.cssText="pointer-events:auto";return M.style.pointerEvents==="auto"}};(function D(M){var N=document.documentElement;J.forEach(M,function(P,O){P()&&(G()?N.classList.add(O):N.className+=" "+O)})})(K);F.localStorage=H;F.canvas=B;F.fileReader=C;F.splitCapture=I;F.cssTransform=E});