From 28e2711e744aae577a0e64d5f0c9c1c87b77cef5 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 12 Nov 2015 11:15:16 +0100 Subject: [PATCH] Updated history and docs --- HISTORY.md | 3 +++ docs/data/dataset.html | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 4da5151c..235b123e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -19,6 +19,9 @@ http://visjs.org - Implemented option `itemsAlwaysDraggable`, See #1395. Thanks @liuqingc. - Implemented option `multiselectPerGroup`. Thanks @hansmaulwurf23. +- Implemented property `oldData` on change events of the DataSet, and + deprecated the `data` property which wrongly contained new data instead of + old data. Thanks @hansmaulwurf23. - Expose `vis.timeline.Core` for customization purposes. ### Graph2d diff --git a/docs/data/dataset.html b/docs/data/dataset.html index a9426ce1..fd1cdd3d 100644 --- a/docs/data/dataset.html +++ b/docs/data/dataset.html @@ -598,9 +598,10 @@ function (event, properties, senderId) { update, and remove, properties is always an object containing a property items, which contains an array with the ids of the affected - items. The update event has an extra field data - containing the original data of the updated items, i.e. the gives the - changed fields of the changed items. + items. The update event has an extra field oldData + containing the original data of the updated items, which allows to + determine the changed fields of the changed items when comparing to + the new item properties.