Merge pull request #200 from softcup/master

fixed appCache.update error.
This commit is contained in:
Igor Zhukov 2014-03-28 09:17:50 +03:00
commit d9a5b46e2a

View File

@ -31,7 +31,11 @@
scheduleUpdate = function (delay) { scheduleUpdate = function (delay) {
clearTimeout(updateTimeout); clearTimeout(updateTimeout);
updateTimeout = setTimeout(function () { updateTimeout = setTimeout(function () {
appCache.update(); try {
appCache.update();
} catch (ex) {
console.log('appCache.update: ' + ex);
}
}, delay || 300000); }, delay || 300000);
}, },
attach = function () { attach = function () {