implement some of the commented todos

This commit is contained in:
Kevin Jahns
2019-04-09 04:01:37 +02:00
parent 1b06f59d1c
commit 52ec698635
24 changed files with 233 additions and 243 deletions

View File

@@ -54,15 +54,14 @@ export class ItemJSON extends AbstractItem {
return this.content
}
/**
* @param {StructStore} store
* @param {number} diff
*/
splitAt (store, diff) {
splitAt (diff) {
/**
* @type {ItemJSON}
*/
// @ts-ignore
const right = splitItem(store, this, diff)
const right = splitItem(this, diff)
right.content = this.content.splice(diff)
return right
}