feat: inline fromJSON
This commit is contained in:
parent
85fa802338
commit
ffa5e65835
|
@ -2,9 +2,12 @@ import {fromJSON as behaviorItemFromJSON} from './registry';
|
|||
|
||||
export class Traversal {
|
||||
|
||||
constructor() {
|
||||
constructor(json) {
|
||||
this.steps = [];
|
||||
this.value = undefined;
|
||||
if (json) {
|
||||
this.fromJSON(json);
|
||||
}
|
||||
}
|
||||
|
||||
clone(other) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user