Skip to content

Commit

Permalink
made tests for appCache support more thorough
Browse files Browse the repository at this point in the history
  • Loading branch information
fearphage authored and paulirish committed Dec 8, 2009
1 parent 7f338c1 commit 0d2058d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ window.Modernizr = (function(window,doc){
};

tests[applicationCache] = function() {
return !!window.applicationCache;
var cache = window.applicationCache;
return !!(cache && (typeof cache.status != 'undefined') && (typeof cache.update == 'function') && (typeof cache.swapCache == 'function'));
};


Expand Down

0 comments on commit 0d2058d

Please sign in to comment.