Overview
Comment: | [fx] init: observePage, set this |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | comdic |
Files: | files | file ages | folders |
SHA3-256: |
a7c123cfd6a3c4b2f78c913a9aae90f6 |
User & Date: | olr on 2019-02-25 12:11:35 |
Other Links: | branch diff | manifest | tags |
Context
2019-03-15
| ||
14:00 | merge trunk check-in: 8ca82c9a7e user: olr tags: comdic | |
2019-02-25
| ||
12:11 | [fx] init: observePage, set this check-in: a7c123cfd6 user: olr tags: comdic, fx | |
09:32 | merge trunk check-in: a6af007243 user: olr tags: comdic | |
Changes
Modified gc_lang/fr/webext/content_scripts/init.js from [98cdeac458] to [6e32e0cbb4].
100 100 } 101 101 } 102 102 } 103 103 }, 104 104 105 105 observePage: function () { 106 106 // When a textarea is added via jascript we add the menu 107 + let that = this; 107 108 this.xObserver = new MutationObserver(function (mutations) { 108 109 mutations.forEach(function (mutation) { 109 110 for (let i = 0; i < mutation.addedNodes.length; i++){ 110 111 if (mutation.addedNodes[i].tagName == "TEXTAREA") { 111 - if (this.oOptions === null || this.oOptions.textarea) { 112 + if (that.oOptions === null || that.oOptions.textarea) { 112 113 oGrammalecte.lMenu.push(new GrammalecteMenu(oGrammalecte.nMenu, mutation.addedNodes[i])); 113 114 oGrammalecte.nMenu += 1; 114 115 } 115 116 } else if (mutation.addedNodes[i].getElementsByTagName) { 116 - if (this.oOptions === null || this.oOptions.textarea) { 117 + if (that.oOptions === null || that.oOptions.textarea) { 117 118 for (let xNode of mutation.addedNodes[i].getElementsByTagName("textarea")) { 118 119 oGrammalecte.lMenu.push(new GrammalecteMenu(oGrammalecte.nMenu, xNode)); 119 120 oGrammalecte.nMenu += 1; 120 121 } 121 122 } 122 123 } 123 124 }