Differences From Artifact [b606739764]:
- File gc_lang/fr/modules-js/phonet.js — part of check-in [5dd4693a8f] at 2017-08-08 17:31:11 on branch webext2_fix — [core] add isInit in object conj, phonet, mfsp to prevent loading data twice (user: IllusionPerdu, size: 3287) [annotate] [blame] [check-ins using]
To Artifact [2b1a025d02]:
- File gc_lang/fr/modules-js/phonet.js — part of check-in [6cea30d5de] at 2017-08-08 17:45:08 on branch webext2_fix — [core] set isInit to true when the object was initialized (user: IllusionPerdu, size: 3319) [annotate] [blame] [check-ins using]
︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | + | isInit: false, init: function (sJSONData) { try { let _oData = JSON.parse(sJSONData); this._dWord = helpers.objectToMap(_oData.dWord); this._lSet = _oData.lSet; this._dMorph = helpers.objectToMap(_oData.dMorph); this.isInit = true; } catch (e) { console.error(e); } }, hasSimil: function (sWord, sPattern=null) { |
︙ |