mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
37 lines
950 B
JavaScript
37 lines
950 B
JavaScript
/*!
|
|
{
|
|
"name": "Typed arrays",
|
|
"property": "typedarrays",
|
|
"caniuse": "typedarrays",
|
|
"tags": ["js"],
|
|
"authors": ["Stanley Stuart (@fivetanley)"],
|
|
"notes": [{
|
|
"name": "MDN Docs",
|
|
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays"
|
|
}, {
|
|
"name": "Kronos spec",
|
|
"href": "http://www.ecma-international.org/ecma-262/6.0/#sec-typedarray-objects"
|
|
}],
|
|
"polyfills": ["joshuabell-polyfill"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for native binary data manipulation via Typed Arrays in JavaScript.
|
|
|
|
Does not check for DataView support; use `Modernizr.dataview` for that.
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
// Should fail in:
|
|
// Internet Explorer <= 9
|
|
// Firefox <= 3.6
|
|
// Chrome <= 6.0
|
|
// iOS Safari < 4.2
|
|
// Safari < 5.1
|
|
// Opera < 11.6
|
|
// Opera Mini, <= 7.0
|
|
// Android Browser < 4.0
|
|
// Blackberry Browser < 10.0
|
|
|
|
Modernizr.addTest('typedarrays', 'ArrayBuffer' in window);
|
|
});
|