Browse Source

Fixed #286: newly added item ignored when returning an other object instance.

v3_develop
jos 9 years ago
parent
commit
9bd9e0dd31
5 changed files with 5 additions and 4 deletions
  1. +1
    -0
      HISTORY.md
  2. +1
    -1
      dist/vis.js
  3. +1
    -1
      dist/vis.map
  4. +1
    -1
      dist/vis.min.js
  5. +1
    -1
      lib/timeline/component/ItemSet.js

+ 1
- 0
HISTORY.md View File

@ -19,6 +19,7 @@ http://visjs.org
- Fixed moment.js url in localization example.
- Fixed `className` of groups not being updated when changed.
- Fixed the `id` field of a new item not correctly generated.
- Fixed newly added item ignored when returning an other object instance.
## 2014-08-29, version 3.3.0

+ 1
- 1
dist/vis.js View File

@ -10892,7 +10892,7 @@ return /******/ (function(modules) { // webpackBootstrap
// execute async handler to customize (or cancel) adding an item
this.options.onAdd(newItem, function (item) {
if (item) {
me.itemsData.add(newItem);
me.itemsData.add(item);
// TODO: need to trigger a redraw?
}
});

+ 1
- 1
dist/vis.map
File diff suppressed because it is too large
View File


+ 1
- 1
dist/vis.min.js
File diff suppressed because it is too large
View File


+ 1
- 1
lib/timeline/component/ItemSet.js View File

@ -1324,7 +1324,7 @@ ItemSet.prototype._onAddItem = function (event) {
// execute async handler to customize (or cancel) adding an item
this.options.onAdd(newItem, function (item) {
if (item) {
me.itemsData.add(newItem);
me.itemsData.add(item);
// TODO: need to trigger a redraw?
}
});

Loading…
Cancel
Save