Grammalecte  Check-in [e1707a65be]

Overview
Comment:[graphspell][js] dawg: convert Map to Object when exporting to JSON
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256: e1707a65be42c3315314b91a4a4d5824d7101dc5a287ff57b6d90791dcdb1d75
User & Date: olr on 2018-02-07 16:15:05
Other Links: manifest | tags
Context
2018-02-07
16:38
[graphspell][js] update for dawg: export as JSON check-in: 29e54c7426 user: olr tags: graphspell, trunk
16:15
[graphspell][js] dawg: convert Map to Object when exporting to JSON check-in: e1707a65be user: olr tags: graphspell, trunk
16:14
[graphspell][js] dawg: fix bugs in select() check-in: a227ad5a87 user: olr tags: graphspell, trunk
Changes

Modified graphspell-js/dawg.js from [01de2ded5b] to [ba2376ee6f].

   379    379               "nBytesNodeAddress": this.nBytesNodeAddress,
   380    380               "nEntries": this.nEntry,
   381    381               "nNode": this.nNode,
   382    382               "nArc": this.nArc,
   383    383               "nAff": this.nAff,
   384    384               "cStemming": this.cStemming,
   385    385               "nTag": this.nTag,
   386         -            "dChar": this.dChar,
          386  +            "dChar": helpers.mapToObject(this.dChar),
   387    387               "_arcMask": this._arcMask,
   388    388               "_finalNodeMask": this._finalNodeMask,
   389    389               "_lastArcMask": this._lastArcMask,
   390    390               "_addrBitMask": this._addrBitMask,
   391    391               "nBytesOffset": this.nBytesOffset
   392    392           };
   393    393           return oJSON;