|
@ -168,8 +168,10 @@ Timeline.prototype.setOptions = function (options) { |
|
|
// force recreation of all items
|
|
|
// force recreation of all items
|
|
|
var itemsData = this.itemsData; |
|
|
var itemsData = this.itemsData; |
|
|
if (itemsData) { |
|
|
if (itemsData) { |
|
|
this.setItems(null); // remove all
|
|
|
|
|
|
this.setItems(itemsData); // add all
|
|
|
|
|
|
|
|
|
var selection = this.getSelection(); |
|
|
|
|
|
this.setItems(null); // remove all
|
|
|
|
|
|
this.setItems(itemsData); // add all
|
|
|
|
|
|
this.setSelection(selection); // restore selection
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|