From a2c65f26ebeaf6d123a20e53e4a2c6995e2e55c6 Mon Sep 17 00:00:00 2001 From: Blaise Date: Sat, 29 Oct 2022 14:53:30 -0500 Subject: More microlight to proselight changes --- proselight.js | 10 +++++----- 1 file 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 @@ } else if (typeof exports !== 'undefined') { factory(exports); } else { - factory((root.microlight = {})); + factory((root.proselight = {})); } }(this, function (exports) { // for better compression @@ -25,17 +25,17 @@ test = 'test', i, - microlighted, + proselighted, cn, //child nodes - el; // current microlighted element to run through + el; // current proselighted element to run through var reset = function() { // nodes to highlight - microlighted = _document.querySelectorAll('p'); + proselighted = _document.querySelectorAll('p'); - for (i = 0; el = microlighted[i++];) { + for (i = 0; el = proselighted[i++];) { cn = Array.from(el.childNodes); for (j = 0; j < cn.length; j++) { if (cn[j].nodeType != Node.TEXT_NODE) { -- cgit v1.2.3