Overview
Comment: | Ajustement de la condition dans le MutationObserver |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | FixWebext |
Files: | files | file ages | folders |
SHA3-256: |
40768b23131898ed011e01d18c35cbf1 |
User & Date: | IllusionPerdu on 2017-10-28 09:19:47 |
Other Links: | branch diff | manifest | tags |
Context
2017-10-28
| ||
09:47 | [doc] update build.md check-in: 29423db53a user: olr tags: doc, FixWebext | |
09:19 | Ajustement de la condition dans le MutationObserver check-in: 40768b2313 user: IllusionPerdu tags: FixWebext | |
09:09 | [fx] Change in css to ajust line-height check-in: 18723bb569 user: IllusionPerdu tags: fx, FixWebext | |
Changes
Modified gc_lang/fr/webext/content_scripts/init.js from [669d7f6b5e] to [8fdfb151d0].
︙ | ︙ | |||
97 98 99 100 101 102 103 | observePage: function () { /* When a textarea is added via jascript we add the menu :) */ this.xObserver = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { for (let i = 0; i < mutation.addedNodes.length; i++){ | < | | | | | | | < | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | observePage: function () { /* When a textarea is added via jascript we add the menu :) */ this.xObserver = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { for (let i = 0; i < mutation.addedNodes.length; i++){ if (mutation.addedNodes[i].tagName == "TEXTAREA") { oGrammalecte.lMenu.push(new GrammalecteMenu(oGrammalecte.nMenu, mutation.addedNodes[i])); oGrammalecte.nMenu += 1; } else if (mutation.addedNodes[i].getElementsByTagName) { for (let xNode of mutation.addedNodes[i].getElementsByTagName("textarea")) { oGrammalecte.lMenu.push(new GrammalecteMenu(oGrammalecte.nMenu, xNode)); oGrammalecte.nMenu += 1; } } } }); }); this.xObserver.observe(document.body, { childList: true, |
︙ | ︙ |