Grammalecte  Check-in [7abad73bbb]

Overview
Comment:[fx][bug] init: set this
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 7abad73bbbd773da9401be20f3b9b8850a82e95e2fcf758c57e7bb4398b8dc7d
User & Date: olr on 2019-03-04 09:48:59
Other Links: manifest | tags
Context
2019-03-04
09:50
[graphspell] ibdawg: suggestions for trailing numbers -> exponent check-in: 0d2727274d user: olr tags: graphspell, trunk
09:48
[fx][bug] init: set this check-in: 7abad73bbb user: olr tags: fx, trunk
2019-03-03
20:52
[misc] SublimeText syntax update check-in: 27c1700da9 user: olr tags: misc, trunk
Changes

Modified gc_lang/fr/webext/content_scripts/init.js from [9009a7100d] to [f86f05b6a6].

   102    102           }
   103    103       },
   104    104   
   105    105       observePage: function () {
   106    106           /*
   107    107               When a textarea is added via jascript we add the menu :)
   108    108           */
          109  +        let that = this;
   109    110           this.xObserver = new MutationObserver(function (mutations) {
   110    111               mutations.forEach(function (mutation) {
   111    112                   for (let i = 0;  i < mutation.addedNodes.length;  i++){
   112    113                       if (mutation.addedNodes[i].tagName == "TEXTAREA") {
   113         -                        if (this.oOptions === null || this.oOptions.textarea) {
          114  +                        if (that.oOptions === null || that.oOptions.textarea) {
   114    115                               oGrammalecte.lMenu.push(new GrammalecteMenu(oGrammalecte.nMenu, mutation.addedNodes[i]));
   115    116                               oGrammalecte.nMenu += 1;
   116    117                           }
   117    118                       } else if (mutation.addedNodes[i].getElementsByTagName) {
   118         -                        if (this.oOptions === null || this.oOptions.textarea) {
          119  +                        if (that.oOptions === null || that.oOptions.textarea) {
   119    120                               for (let xNode of mutation.addedNodes[i].getElementsByTagName("textarea")) {
   120    121                                   oGrammalecte.lMenu.push(new GrammalecteMenu(oGrammalecte.nMenu, xNode));
   121    122                                   oGrammalecte.nMenu += 1;
   122    123                               }
   123    124                           }
   124    125                       }
   125    126                   }