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.