Skip to content

Commit

Permalink
Merge pull request #1 from hyoo-ru/new-tree2
Browse files Browse the repository at this point in the history
$mol_view_tree2 refactor, hyoo-ru/mam_mol#646
  • Loading branch information
nin-jin authored Feb 11, 2024
2 parents 0641a92 + 0d1d667 commit 15b658a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scout.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace $.$$ {
@ $mol_mem
data() {
const text = $mol_fetch.text( 'hyoo/scout/_games.tree' )
const json = $mol_tree.fromString( text ).sub.map( tree => tree.clone({ type : '*' }).toJSON() )
const json = this.$.$mol_tree2_from_string( text ).kids.map( tree => this.$.$mol_tree2_to_json(tree.struct('*', tree.kids)) )
return json as $hyoo_scout_gist[]
}

Expand Down
2 changes: 1 addition & 1 deletion suggest/suggest.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace $.$$ {
content : this.descr() ,
}

const gist = new $mol_tree({ type : 'game' , sub : $mol_tree.fromJSON( data ).sub })
const gist = $mol_tree2.struct('game', $mol_tree2_from_json( data ).kids)

const body = encodeURIComponent( gist.toString() + '\n' )

Expand Down

0 comments on commit 15b658a

Please sign in to comment.