|
|
|
@ -369,7 +369,6 @@ class Dataset {
|
|
|
|
|
* <li>{@link Dataset#onModify onModify}</li>
|
|
|
|
|
* <li>{@link Dataset#onReplace onReplace}</li>
|
|
|
|
|
* <li>{@link Dataset#onRemove onRemove}</li>
|
|
|
|
|
* <li>{@link Dataset#onErase onErase}</li>
|
|
|
|
|
* <li>{@link Dataset#onDirtiesChange onDirtiesChange}</li>
|
|
|
|
|
* </ul>
|
|
|
|
|
* </li>
|
|
|
|
@ -396,7 +395,6 @@ class Dataset {
|
|
|
|
|
"onModify",
|
|
|
|
|
"onReplace",
|
|
|
|
|
"onRemove",
|
|
|
|
|
"onErase",
|
|
|
|
|
"onDirtiesChange"
|
|
|
|
|
].forEach(on => {
|
|
|
|
|
let handler = conf[on]
|
|
|
|
@ -1045,8 +1043,7 @@ class Dataset {
|
|
|
|
|
|
|
|
|
|
/**Erases user data associated with the key.
|
|
|
|
|
* After user data removal, the methods
|
|
|
|
|
* <ul> <li>{@link Dataset#onErase}</li>
|
|
|
|
|
* <li>{@link Dataset#onCurrentChange}</li>
|
|
|
|
|
* <ul> <li>{@link Dataset#onCurrentChange}</li>
|
|
|
|
|
* <li>{@link Dataset#onSelectionChange}</li>
|
|
|
|
|
* <li>{@link Dataset#onDirtiesChange}(if the Dataset gets dirty or not dirty)</li>
|
|
|
|
|
* </ul>
|
|
|
|
@ -1097,7 +1094,7 @@ class Dataset {
|
|
|
|
|
}
|
|
|
|
|
this._items = this._items.filter(function(item){return !erased.includes(item);});
|
|
|
|
|
|
|
|
|
|
this.onErase(erased);
|
|
|
|
|
this.onRemove(erased);
|
|
|
|
|
this.setState(state);
|
|
|
|
|
let after = this.dirty;
|
|
|
|
|
if (before != after)
|
|
|
|
@ -1217,11 +1214,6 @@ class Dataset {
|
|
|
|
|
*/
|
|
|
|
|
onRemove(removed) {this.log("Data removed", removed)}
|
|
|
|
|
|
|
|
|
|
/**Called back when user data are erased.
|
|
|
|
|
* @param {array} erased array of erased dataItems
|
|
|
|
|
*/
|
|
|
|
|
onErase(erased) {this.log("Data erased", erased)}
|
|
|
|
|
|
|
|
|
|
/**Called back when the Dataset gets dirty or not dirty.
|
|
|
|
|
* @param {boolean} dirty
|
|
|
|
|
* <ul> <li>true if the Dataset is dirty</li>
|
|
|
|
|