|
|
@ -785,7 +785,7 @@ ItemSet.prototype.setGroups = function(groups) { |
|
|
|
// update the order of all items in each group
|
|
|
|
this._order(); |
|
|
|
|
|
|
|
this.body.emitter.emit('change', {queue: true}); |
|
|
|
this.body.emitter.emit('_change', {queue: true}); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
@ -896,7 +896,7 @@ ItemSet.prototype._onUpdate = function(ids) { |
|
|
|
|
|
|
|
this._order(); |
|
|
|
this.stackDirty = true; // force re-stacking of all items next redraw
|
|
|
|
this.body.emitter.emit('change', {queue: true}); |
|
|
|
this.body.emitter.emit('_change', {queue: true}); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
@ -926,7 +926,7 @@ ItemSet.prototype._onRemove = function(ids) { |
|
|
|
// update order
|
|
|
|
this._order(); |
|
|
|
this.stackDirty = true; // force re-stacking of all items next redraw
|
|
|
|
this.body.emitter.emit('change', {queue: true}); |
|
|
|
this.body.emitter.emit('_change', {queue: true}); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
@ -996,7 +996,7 @@ ItemSet.prototype._onAddGroups = function(ids) { |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.body.emitter.emit('change', {queue: true}); |
|
|
|
this.body.emitter.emit('_change', {queue: true}); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
@ -1017,7 +1017,7 @@ ItemSet.prototype._onRemoveGroups = function(ids) { |
|
|
|
|
|
|
|
this.markDirty(); |
|
|
|
|
|
|
|
this.body.emitter.emit('change', {queue: true}); |
|
|
|
this.body.emitter.emit('_change', {queue: true}); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
@ -1393,7 +1393,7 @@ ItemSet.prototype._onDrag = function (event) { |
|
|
|
}.bind(this)); |
|
|
|
|
|
|
|
this.stackDirty = true; // force re-stacking of all items next redraw
|
|
|
|
this.body.emitter.emit('change'); |
|
|
|
this.body.emitter.emit('_change'); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
@ -1444,7 +1444,7 @@ ItemSet.prototype._onDragEnd = function (event) { |
|
|
|
|
|
|
|
// force re-stacking of all items next redraw
|
|
|
|
me.stackDirty = true; |
|
|
|
me.body.emitter.emit('change'); |
|
|
|
me.body.emitter.emit('_change'); |
|
|
|
}); |
|
|
|
} |
|
|
|
else { |
|
|
@ -1461,7 +1461,7 @@ ItemSet.prototype._onDragEnd = function (event) { |
|
|
|
props.item.setData(props.data); |
|
|
|
|
|
|
|
me.stackDirty = true; // force re-stacking of all items next redraw
|
|
|
|
me.body.emitter.emit('change'); |
|
|
|
me.body.emitter.emit('_change'); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|