From aaa2fe00352eaa99bddc038cceab01dfc5e25b03 Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 22 Apr 2014 14:37:05 +0200 Subject: [PATCH] Fixed undefined variable options --- HISTORY.md | 12 ++++++++++++ examples/timeline/index.html | 1 + src/timeline/component/ItemSet.js | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index b50c9b3d..ab42edaf 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,18 @@ vis.js history http://visjs.org +## not yet released, version 0.8.0 + +### Timeline + +- Large refactoring of the Timeline code: + - Simplifications in the code. + - Performance improvements. +- Fixed option `autoResize` forcing a repaint of the Timeline with every check + rather than when the Timeline is actually resized. +- Minor bug fixes. + + ## 2014-04-18, version 0.7.4 ### Graph diff --git a/examples/timeline/index.html b/examples/timeline/index.html index 5c933428..e9db6b2e 100644 --- a/examples/timeline/index.html +++ b/examples/timeline/index.html @@ -21,6 +21,7 @@

07_custom_time_bar.html

08_edit_items.html

09_order_groups.html

+

requirejs_example.html

diff --git a/src/timeline/component/ItemSet.js b/src/timeline/component/ItemSet.js index cdb4466a..c3415709 100644 --- a/src/timeline/component/ItemSet.js +++ b/src/timeline/component/ItemSet.js @@ -495,7 +495,7 @@ ItemSet.prototype._onUpdate = function _onUpdate(ids) { item = items[id], type = itemData.type || (itemData.start && itemData.end && 'range') || - options.type || + me.options.type || 'box'; var constructor = ItemSet.types[type]; @@ -516,7 +516,7 @@ ItemSet.prototype._onUpdate = function _onUpdate(ids) { if (!item) { // create item if (constructor) { - item = new constructor(me, itemData, options, itemOptions); + item = new constructor(me, itemData, me.options, itemOptions); item.id = id; } else {