remove check-canvas-support.js
This commit is contained in:
parent
3479fb7ff7
commit
179849b639
1 changed files with 0 additions and 15 deletions
|
@ -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)
|
|
||||||
})()
|
|
Loading…
Reference in a new issue