Permalink
Browse files

Update to use Modernizr.prefixed() and remove performance memory.

  • Loading branch information...
1 parent e25f212 commit b03b7b0f8ce25bdc83fb66916a7a8689b49e54f4 @uxder uxder committed Jan 17, 2012
Showing with 1 addition and 6 deletions.
  1. +0 −5 feature-detects/performance-memory.js
  2. +1 −1 feature-detects/performance.js
@@ -1,5 +0,0 @@
-// Navigation Timing (Performance)
-// http://www.html5rocks.com/en/tutorials/webperformance/basics/
-// Currently only available in Chrome
-// By Scott Murphy (uxder)
-Modernizr.addTest('performancememory', !!(window.performance.memory));
@@ -2,4 +2,4 @@
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/
// http://www.html5rocks.com/en/tutorials/webperformance/basics/
// By Scott Murphy (uxder)
-Modernizr.addTest('performance', !!(window.performance));
+Modernizr.addTest('performance', !!Modernizr.prefixed('performance', window));

0 comments on commit b03b7b0

Please sign in to comment.