dataview-api.js 558 B

12345678910111213141516171819
  1. /*!
  2. {
  3. "name": "DataView",
  4. "property": "dataview",
  5. "authors": ["Addy Osmani"],
  6. "builderAliases": ["dataview_api"],
  7. "notes": [{
  8. "name": "MDN Docs",
  9. "href": "https://developer.mozilla.org/en/JavaScript_typed_arrays/DataView"
  10. }],
  11. "polyfills": ["jdataview"]
  12. }
  13. !*/
  14. /* DOC
  15. Detects support for the DataView interface for reading data from an ArrayBuffer as part of the Typed Array spec.
  16. */
  17. define(['Modernizr'], function(Modernizr) {
  18. Modernizr.addTest('dataview', (typeof DataView !== 'undefined' && 'getFloat64' in DataView.prototype));
  19. });