From 147fab95c7b76d06036b8bcaa37a6f4a35699bce Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 14 Sep 2012 08:14:42 -0400 Subject: [PATCH] minor changes --- lib/server/appcache.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/server/appcache.js b/lib/server/appcache.js index 320a61fb..3e8964fc 100644 --- a/lib/server/appcache.js +++ b/lib/server/appcache.js @@ -64,15 +64,17 @@ function onWatch (pFileName){ return function(pEvent, pFileName){ console.log(pEvent); console.log('file ' + pFileName + ' is changed'); - + processManifest(); }; } function onWatchFile(pFileName){ return function(pCurr, pPrev){ console.log(pCurr); - if(pCurr.mtime !== pPrev.mtime) + if(pCurr.mtime !== pPrev.mtime){ console.log('file ' + pFileName + ' is changed'); + processManifest(); + } }; }