if (Modernizr.applicationcache) {
applicationCache.addEventListener('updateready', cacheUpdated, false);
applicationCache.addEventListener('downloading', function(e) {
+ console.log('cache downloading');
}, false);
applicationCache.addEventListener('cached', function(e) {
+ console.log('cache completed');
fluidbook.video.initCache();
}, false);
applicationCache.addEventListener('noupdate', function(e) {
+ console.log('cache nothing to update');
fluidbook.video.initCache();
}, false);
applicationCache.addEventListener('checking', function(e) {
+ console.log('cache check');
}, false);
applicationCache.addEventListener('error', function(e) {
+ console.log('cache error');
}, false);
}