diff --git a/app/assets/javascripts/src/check-canvas-support.js b/app/assets/javascripts/src/check-canvas-support.js deleted file mode 100644 index 90afdde1..00000000 --- a/app/assets/javascripts/src/check-canvas-support.js +++ /dev/null @@ -1,15 +0,0 @@ -// TODO document this user agent function -var labelType, useGradients, nativeTextSupport, animate -;(function () { - var ua = navigator.userAgent, - iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i), - typeOfCanvas = typeof HTMLCanvasElement, - nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'), - textSupport = nativeCanvasSupport && (typeof document.createElement('canvas').getContext('2d').fillText == 'function') - // I'm setting this based on the fact that ExCanvas provides text support for IE - // and that as of today iPhone/iPad current text support is lame - labelType = (!nativeCanvasSupport || (textSupport && !iStuff)) ? 'Native' : 'HTML' - nativeTextSupport = labelType == 'Native' - useGradients = nativeCanvasSupport - animate = !(iStuff || !nativeCanvasSupport) -})()