From fbef19a5a098f19df7889d1b5017d8798dae27cb Mon Sep 17 00:00:00 2001 From: life Date: Tue, 5 May 2015 00:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=80=BB=E6=98=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9updatedTime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/node_modules/note.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/node_modules/note.js b/src/node_modules/note.js index 272c7f29..dd75609e 100644 --- a/src/node_modules/note.js +++ b/src/node_modules/note.js @@ -125,9 +125,11 @@ var Note = { } updates['IsDirty'] = isDirty; - updates['LocalIsDelete'] = false; - updates.UpdatedTime = date; + + if(isDirty) { + updates.UpdatedTime = date; + } // console.log('finally update:'); // console.log(updates);