Browse Source

Fixed undefined variable options

css_transitions
jos 10 years ago
parent
commit
aaa2fe0035
3 changed files with 15 additions and 2 deletions
  1. +12
    -0
      HISTORY.md
  2. +1
    -0
      examples/timeline/index.html
  3. +2
    -2
      src/timeline/component/ItemSet.js

+ 12
- 0
HISTORY.md View File

@ -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

+ 1
- 0
examples/timeline/index.html View File

@ -21,6 +21,7 @@
<p><a href="07_custom_time_bar.html">07_custom_time_bar.html</a></p>
<p><a href="08_edit_items.html">08_edit_items.html</a></p>
<p><a href="09_order_groups.html">09_order_groups.html</a></p>
<p><a href="requirejs/requirejs_example.html">requirejs_example.html</a></p>
</div>
</body>

+ 2
- 2
src/timeline/component/ItemSet.js View File

@ -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 {

Loading…
Cancel
Save