From c7d19df48dc6515862651cefcc04cd6c7e93c11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 20 Mar 2015 13:56:37 +0100 Subject: [PATCH] Add timestamp to Model.delete --- src/model.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/model.js b/src/model.js index 8e97b6dc7a..2f9c620795 100644 --- a/src/model.js +++ b/src/model.js @@ -51,7 +51,10 @@ return record.id >= 0; }); var context = {}; - // TODO timestamp + context._timestamp = {}; + records.forEach(function(record) { + jQuery.extend(context._timestamp, record.get_timestamp()); + }); var record_ids = records.map(function(record) { return record.id; });