pull/16748/head
Rich Harris 4 days ago
parent b4a85948d6
commit a2860bbd9f

@ -381,14 +381,11 @@ export class TreeState {
constructor(mode, id_prefix = '') {
this.mode = mode;
this.uid = props_id_generator(id_prefix);
this.head = new TreeHeadState(this.uid);
this.head = new TreeHeadState();
}
}
export class TreeHeadState {
/** @readonly @type {() => string} */
uid = () => '';
/**
* @type {{ path: number[], value: string }}
*/
@ -423,14 +420,6 @@ export class TreeHeadState {
this.#title.value = value;
}
}
/**
* @param {() => string} uid
*/
constructor(uid) {
this.uid = uid;
this.#title = { path: [], value: '' };
}
}
/**

Loading…
Cancel
Save