Skip to content

Commit

Permalink
Used changes to prefixed method to alter indexedDB test to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanseddon committed Dec 15, 2011
1 parent 537a762 commit e2975c6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,7 @@ window.Modernizr = (function( window, document, undefined ) {
// - Firefox shipped moz_indexedDB before FF4b9, but since then has been mozIndexedDB
// For speed, we don't test the legacy (and beta-only) indexedDB
tests['indexedDB'] = function() {
for ( var i = -1, len = cssomPrefixes.length; ++i < len; ){
if ( window[cssomPrefixes[i].toLowerCase() + 'IndexedDB'] ){
return true;
}
}
return !!window.indexedDB;
return !!testPropsAll("indexedDB",window);
};

// documentMode logic from YUI to filter out IE8 Compat Mode
Expand Down

0 comments on commit e2975c6

Please sign in to comment.