Skip to content

Commit

Permalink
remove my orientation test in favor for shi chuans. rename file tho.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jun 5, 2011
1 parent cf0864d commit 63aab70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
11 changes: 0 additions & 11 deletions feature-detects/device-orientation.js

This file was deleted.

12 changes: 9 additions & 3 deletions feature-detects/event-deviceorientation-motion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// support for orientation and motion events by way of device accelerometers
//By Shi Chuan
//Part of Device Access aspect of HTML5, same category as geolocation
//W3C Editor's Draft at http://dev.w3.org/geo/api/spec-source-orientation.html
//Implementation by iOS Safari at http://goo.gl/fhce3 and http://goo.gl/rLKz8

Modernizr.addTest('deviceorientation', 'DeviceOrientationEvent' in window);

Modernizr.addTest('devicemotion', 'DeviceMotionEvent' in window);
//test for Device Motion Event support, returns boolean value true/false
Modernizr.addTest('devicemotion', ('DeviceMotionEvent' in window) );

//test for Device Orientation Event support, returns boolean value true/false
Modernizr.addTest('deviceorientation', ('DeviceOrientationEvent' in window) );

0 comments on commit 63aab70

Please sign in to comment.