Skip to content

Instantly share code, notes, and snippets.

@felipehaack
Created March 2, 2015 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipehaack/c858e416e7187763739d to your computer and use it in GitHub Desktop.
Save felipehaack/c858e416e7187763739d to your computer and use it in GitHub Desktop.
var example = {
error: function(){
console.error('error');
},
cached: function(){
console.error('cached');
},
noupdate: function(){
console.error('noupdate');
}
};
window.applicationCache.addEventListener('error', example.error, false);
window.applicationCache.addEventListener('cached', example.cached, false);
window.applicationCache.addEventListener('noupdate', example.noupdate, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment