Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.