Browse Source

Option order made deprecated

css_transitions
jos 10 years ago
parent
commit
5927100054
3 changed files with 8 additions and 0 deletions
  1. +1
    -0
      HISTORY.md
  2. +2
    -0
      docs/timeline.html
  3. +5
    -0
      src/timeline/Timeline.js

+ 1
- 0
HISTORY.md View File

@ -14,6 +14,7 @@ http://visjs.org
rather than when the Timeline is actually resized.
- Fixed `select` event fired repeatedly when clicking an empty place on the
Timeline, deselecting selected items).
- Option `order` is now deprecated. This was needed for performance improvements.
- Minor bug fixes.
- More examples added.

+ 2
- 0
docs/timeline.html View File

@ -456,6 +456,7 @@ var options = {
</td>
</tr>
<!-- TODO: cleanup option order
<tr>
<td>order</td>
<td>Function</td>
@ -466,6 +467,7 @@ var options = {
`vis.components.items.Item`.
</td>
</tr>
-->
<tr>
<td>orientation</td>

+ 5
- 0
src/timeline/Timeline.js View File

@ -315,6 +315,11 @@ Timeline.prototype.setOptions = function (options) {
}
}
// TODO: remove deprecation error one day (deprecated since version 0.8.0)
if (options && options.order) {
throw new Error('Option order is deprecated. There is no replacement for this feature.');
}
// repaint everything
this.rootPanel.repaint();
};

Loading…
Cancel
Save