mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 16:35:39 +00:00
Some trivial stylistic changes
This commit is contained in:
@@ -34,8 +34,8 @@ export abstract class AbstractNode<T> implements INode<T> {
|
||||
transformMod: (v: T) => T
|
||||
|
||||
constructor(def: () => T, mods?: NodeMods<T>) {
|
||||
this.defaultMod = mods?.default ? mods.default : def
|
||||
this.transformMod = mods?.transform ? mods.transform : (v: T) => v
|
||||
this.defaultMod = mods?.default ?? def
|
||||
this.transformMod = mods?.transform ?? ((v: T) => v)
|
||||
}
|
||||
|
||||
setParent(parent: INode<any>) {
|
||||
|
||||
Reference in New Issue
Block a user