feat: inline fromJSON

This commit is contained in:
cha0s 2020-06-19 15:28:16 -05:00
parent 85fa802338
commit ffa5e65835

View File

@ -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) {