|
@ -495,7 +495,7 @@ ItemSet.prototype._onUpdate = function _onUpdate(ids) { |
|
|
item = items[id], |
|
|
item = items[id], |
|
|
type = itemData.type || |
|
|
type = itemData.type || |
|
|
(itemData.start && itemData.end && 'range') || |
|
|
(itemData.start && itemData.end && 'range') || |
|
|
options.type || |
|
|
|
|
|
|
|
|
me.options.type || |
|
|
'box'; |
|
|
'box'; |
|
|
|
|
|
|
|
|
var constructor = ItemSet.types[type]; |
|
|
var constructor = ItemSet.types[type]; |
|
@ -516,7 +516,7 @@ ItemSet.prototype._onUpdate = function _onUpdate(ids) { |
|
|
if (!item) { |
|
|
if (!item) { |
|
|
// create item
|
|
|
// create item
|
|
|
if (constructor) { |
|
|
if (constructor) { |
|
|
item = new constructor(me, itemData, options, itemOptions); |
|
|
|
|
|
|
|
|
item = new constructor(me, itemData, me.options, itemOptions); |
|
|
item.id = id; |
|
|
item.id = id; |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|