summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise2022-10-29 14:53:30 -0500
committerBlaise2022-10-29 14:53:30 -0500
commita2c65f26ebeaf6d123a20e53e4a2c6995e2e55c6 (patch)
tree8aeebf638cfa0492c77d2eb51d16190c5b7444d6
parentac06482b1ccf932432522583059b98390a3f176c (diff)
More microlight to proselight changes
-rw-r--r--proselight.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/proselight.js b/proselight.js
index 16b2f1e..b4df7f4 100644
--- a/proselight.js
+++ b/proselight.js
@@ -15,7 +15,7 @@
15 } else if (typeof exports !== 'undefined') { 15 } else if (typeof exports !== 'undefined') {
16 factory(exports); 16 factory(exports);
17 } else { 17 } else {
18 factory((root.microlight = {})); 18 factory((root.proselight = {}));
19 } 19 }
20}(this, function (exports) { 20}(this, function (exports) {
21 // for better compression 21 // for better compression
@@ -25,17 +25,17 @@
25 test = 'test', 25 test = 'test',
26 26
27 i, 27 i,
28 microlighted, 28 proselighted,
29 cn, //child nodes 29 cn, //child nodes
30 el; // current microlighted element to run through 30 el; // current proselighted element to run through
31 31
32 32
33 33
34 var reset = function() { 34 var reset = function() {
35 // nodes to highlight 35 // nodes to highlight
36 microlighted = _document.querySelectorAll('p'); 36 proselighted = _document.querySelectorAll('p');
37 37
38 for (i = 0; el = microlighted[i++];) { 38 for (i = 0; el = proselighted[i++];) {
39 cn = Array.from(el.childNodes); 39 cn = Array.from(el.childNodes);
40 for (j = 0; j < cn.length; j++) { 40 for (j = 0; j < cn.length; j++) {
41 if (cn[j].nodeType != Node.TEXT_NODE) { 41 if (cn[j].nodeType != Node.TEXT_NODE) {