~caneypuggies/reformedchurcheslocator/couchapp-backbone

« back to all changes in this revision

Viewing changes to _attachments/js/vendor/modernizr/feature-detects/event-deviceorientation-motion.js

  • Committer: Tim Black
  • Date: 2013-09-16 22:50:16 UTC
  • Revision ID: tim@alwaysreformed.com-20130916225016-zk8jiba25z33ew7h
Versioned Bower vendor directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//By Shi Chuan
 
2
//Part of Device Access aspect of HTML5, same category as geolocation
 
3
//W3C Editor's Draft at http://dev.w3.org/geo/api/spec-source-orientation.html
 
4
//Implementation by iOS Safari at http://goo.gl/fhce3 and http://goo.gl/rLKz8
 
5
 
 
6
 
 
7
//test for Device Motion Event support, returns boolean value true/false
 
8
Modernizr.addTest('devicemotion', ('DeviceMotionEvent' in window) );
 
9
 
 
10
//test for Device Orientation Event support, returns boolean value true/false
 
11
Modernizr.addTest('deviceorientation', ('DeviceOrientationEvent' in window) );