From fa2fc2aaa58093b6badf124f3317a70eb1c31c6f Mon Sep 17 00:00:00 2001 From: koalyptus Date: Thu, 24 Mar 2016 01:32:15 +0000 Subject: [PATCH] publish Docs to gh-pages (auto) branch: master SHA: 237531fd96aa22d77d116c884500a1461c4c1ada range SHA: 2faac6650945...237531fd96aa build id: 118132873 build number: 232 --- .../source/modules/highlightKeywords.js.json | 6639 ++++++----------- docs/class/src/emitter.js~Emitter.html | 2 +- ...pterEzEditTable.js~AdapterEzEditTable.html | 2 +- .../extensions/colOps/colOps.js~ColOps.html | 2 +- .../colsVisibility.js~ColsVisibility.html | 2 +- ...iltersVisibility.js~FiltersVisibility.html | 2 +- ...Sortabletable.js~AdapterSortableTable.html | 2 +- .../alternateRows.js~AlternateRows.html | 2 +- .../src/modules/checkList.js~CheckList.html | 2 +- .../modules/clearButton.js~ClearButton.html | 2 +- .../src/modules/dropdown.js~Dropdown.html | 2 +- .../class/src/modules/feature.js~Feature.html | 2 +- .../src/modules/gridLayout.js~GridLayout.html | 2 +- docs/class/src/modules/hash.js~Hash.html | 2 +- docs/class/src/modules/help.js~Help.html | 2 +- ...highlightKeywords.js~HighlightKeyword.html | 80 +- docs/class/src/modules/loader.js~Loader.html | 2 +- .../src/modules/noResults.js~NoResults.html | 2 +- docs/class/src/modules/paging.js~Paging.html | 2 +- .../modules/popupFilter.js~PopupFilter.html | 2 +- .../modules/rowsCounter.js~RowsCounter.html | 2 +- docs/class/src/modules/state.js~State.html | 2 +- .../src/modules/statusBar.js~StatusBar.html | 2 +- docs/class/src/modules/store.js~Store.html | 2 +- .../class/src/tablefilter.js~TableFilter.html | 2 +- docs/coverage.json | 15 +- docs/dump.json | 1274 ++-- docs/file/src/array.js.html | 2 +- docs/file/src/cookie.js.html | 2 +- docs/file/src/date.js.html | 2 +- docs/file/src/dom.js.html | 2 +- docs/file/src/emitter.js.html | 2 +- docs/file/src/event.js.html | 2 +- .../advancedGrid/adapterEzEditTable.js.html | 2 +- .../advancedGrid/advancedGrid.js.html | 2 +- .../file/src/extensions/colOps/colOps.js.html | 2 +- .../colsVisibility/colsVisibility.js.html | 2 +- .../filtersVisibility.js.html | 2 +- .../sort/adapterSortabletable.js.html | 2 +- docs/file/src/extensions/sort/sort.js.html | 2 +- docs/file/src/helpers.js.html | 2 +- docs/file/src/modules/alternateRows.js.html | 2 +- docs/file/src/modules/checkList.js.html | 2 +- docs/file/src/modules/clearButton.js.html | 2 +- docs/file/src/modules/dropdown.js.html | 2 +- docs/file/src/modules/feature.js.html | 2 +- docs/file/src/modules/gridLayout.js.html | 2 +- docs/file/src/modules/hash.js.html | 2 +- docs/file/src/modules/help.js.html | 2 +- .../src/modules/highlightKeywords.js.html | 101 +- docs/file/src/modules/loader.js.html | 2 +- docs/file/src/modules/noResults.js.html | 2 +- docs/file/src/modules/paging.js.html | 2 +- docs/file/src/modules/popupFilter.js.html | 2 +- docs/file/src/modules/rowsCounter.js.html | 2 +- docs/file/src/modules/state.js.html | 2 +- docs/file/src/modules/statusBar.js.html | 2 +- docs/file/src/modules/store.js.html | 2 +- docs/file/src/sort.js.html | 2 +- docs/file/src/string.js.html | 2 +- docs/file/src/tablefilter.js.html | 2 +- docs/file/src/types.js.html | 2 +- docs/identifiers.html | 2 +- docs/index.html | 2 +- docs/package.json | 2 +- docs/script/search_index.js | 6 - docs/source.html | 82 +- docs/variable/index.html | 2 +- 68 files changed, 3256 insertions(+), 5063 deletions(-) diff --git a/docs/ast/source/modules/highlightKeywords.js.json b/docs/ast/source/modules/highlightKeywords.js.json index f496d529..2bef9c3b 100644 --- a/docs/ast/source/modules/highlightKeywords.js.json +++ b/docs/ast/source/modules/highlightKeywords.js.json @@ -252,8 +252,8 @@ "type": "Identifier", "name": "constructor", "range": [ - 236, - 247 + 237, + 248 ], "loc": { "start": { @@ -274,8 +274,8 @@ "type": "Identifier", "name": "tf", "range": [ - 248, - 250 + 249, + 251 ], "loc": { "start": { @@ -301,8 +301,8 @@ "type": "Identifier", "name": "f", "range": [ - 266, - 267 + 267, + 268 ], "loc": { "start": { @@ -324,8 +324,8 @@ "type": "Identifier", "name": "tf", "range": [ - 270, - 272 + 271, + 273 ], "loc": { "start": { @@ -342,8 +342,8 @@ "type": "Identifier", "name": "config", "range": [ - 273, - 279 + 274, + 280 ], "loc": { "start": { @@ -357,8 +357,8 @@ } }, "range": [ - 270, - 279 + 271, + 280 ], "loc": { "start": { @@ -373,8 +373,8 @@ }, "arguments": [], "range": [ - 270, - 281 + 271, + 282 ], "loc": { "start": { @@ -388,8 +388,8 @@ } }, "range": [ - 266, - 281 + 267, + 282 ], "loc": { "start": { @@ -403,10 +403,10 @@ } } ], - "kind": "var", + "kind": "let", "range": [ - 262, - 282 + 263, + 283 ], "loc": { "start": { @@ -423,8 +423,8 @@ "type": "Line", "value": "defines css class for highlighting", "range": [ - 291, - 327 + 292, + 328 ], "loc": { "start": { @@ -450,8 +450,8 @@ "object": { "type": "ThisExpression", "range": [ - 336, - 340 + 337, + 341 ], "loc": { "start": { @@ -468,8 +468,8 @@ "type": "Identifier", "name": "highlightCssClass", "range": [ - 341, - 358 + 342, + 359 ], "loc": { "start": { @@ -483,8 +483,8 @@ } }, "range": [ - 336, - 358 + 337, + 359 ], "loc": { "start": { @@ -507,8 +507,8 @@ "type": "Identifier", "name": "f", "range": [ - 361, - 362 + 362, + 363 ], "loc": { "start": { @@ -525,8 +525,8 @@ "type": "Identifier", "name": "highlight_css_class", "range": [ - 363, - 382 + 364, + 383 ], "loc": { "start": { @@ -540,8 +540,8 @@ } }, "range": [ - 361, - 382 + 362, + 383 ], "loc": { "start": { @@ -559,8 +559,8 @@ "value": "keyword", "raw": "'keyword'", "range": [ - 386, - 395 + 387, + 396 ], "loc": { "start": { @@ -574,8 +574,8 @@ } }, "range": [ - 361, - 395 + 362, + 396 ], "loc": { "start": { @@ -589,8 +589,8 @@ } }, "range": [ - 336, - 395 + 337, + 396 ], "loc": { "start": { @@ -604,8 +604,8 @@ } }, "range": [ - 336, - 396 + 337, + 397 ], "loc": { "start": { @@ -622,8 +622,8 @@ "type": "Line", "value": "defines css class for highlighting", "range": [ - 291, - 327 + 292, + 328 ], "loc": { "start": { @@ -649,122 +649,16 @@ "object": { "type": "ThisExpression", "range": [ - 405, - 409 + 407, + 411 ], "loc": { "start": { - "line": 15, + "line": 16, "column": 8 }, "end": { - "line": 15, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "name": "highlightedNodes", - "range": [ - 410, - 426 - ], - "loc": { - "start": { - "line": 15, - "column": 13 - }, - "end": { - "line": 15, - "column": 29 - } - } - }, - "range": [ - 405, - 426 - ], - "loc": { - "start": { - "line": 15, - "column": 8 - }, - "end": { - "line": 15, - "column": 29 - } - } - }, - "right": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 429, - 431 - ], - "loc": { - "start": { - "line": 15, - "column": 32 - }, - "end": { - "line": 15, - "column": 34 - } - } - }, - "range": [ - 405, - 431 - ], - "loc": { - "start": { - "line": 15, - "column": 8 - }, - "end": { - "line": 15, - "column": 34 - } - } - }, - "range": [ - 405, - 432 - ], - "loc": { - "start": { - "line": 15, - "column": 8 - }, - "end": { - "line": 15, - "column": 35 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 442, - 446 - ], - "loc": { - "start": { - "line": 17, - "column": 8 - }, - "end": { - "line": 17, + "line": 16, "column": 12 } } @@ -773,31 +667,31 @@ "type": "Identifier", "name": "tf", "range": [ - 447, - 449 + 412, + 414 ], "loc": { "start": { - "line": 17, + "line": 16, "column": 13 }, "end": { - "line": 17, + "line": 16, "column": 15 } } }, "range": [ - 442, - 449 + 407, + 414 ], "loc": { "start": { - "line": 17, + "line": 16, "column": 8 }, "end": { - "line": 17, + "line": 16, "column": 15 } } @@ -806,46 +700,46 @@ "type": "Identifier", "name": "tf", "range": [ - 452, - 454 + 417, + 419 ], "loc": { "start": { - "line": 17, + "line": 16, "column": 18 }, "end": { - "line": 17, + "line": 16, "column": 20 } } }, "range": [ - 442, - 454 + 407, + 419 ], "loc": { "start": { - "line": 17, + "line": 16, "column": 8 }, "end": { - "line": 17, + "line": 16, "column": 20 } } }, "range": [ - 442, - 455 + 407, + 420 ], "loc": { "start": { - "line": 17, + "line": 16, "column": 8 }, "end": { - "line": 17, + "line": 16, "column": 21 } } @@ -861,16 +755,16 @@ "object": { "type": "ThisExpression", "range": [ - 464, - 468 + 429, + 433 ], "loc": { "start": { - "line": 18, + "line": 17, "column": 8 }, "end": { - "line": 18, + "line": 17, "column": 12 } } @@ -879,31 +773,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 469, - 476 + 434, + 441 ], "loc": { "start": { - "line": 18, + "line": 17, "column": 13 }, "end": { - "line": 18, + "line": 17, "column": 20 } } }, "range": [ - 464, - 476 + 429, + 441 ], "loc": { "start": { - "line": 18, + "line": 17, "column": 8 }, "end": { - "line": 18, + "line": 17, "column": 20 } } @@ -915,16 +809,16 @@ "type": "Identifier", "name": "tf", "range": [ - 479, - 481 + 444, + 446 ], "loc": { "start": { - "line": 18, + "line": 17, "column": 23 }, "end": { - "line": 18, + "line": 17, "column": 25 } } @@ -933,69 +827,69 @@ "type": "Identifier", "name": "emitter", "range": [ - 482, - 489 + 447, + 454 ], "loc": { "start": { - "line": 18, + "line": 17, "column": 26 }, "end": { - "line": 18, + "line": 17, "column": 33 } } }, "range": [ - 479, - 489 + 444, + 454 ], "loc": { "start": { - "line": 18, + "line": 17, "column": 23 }, "end": { - "line": 18, + "line": 17, "column": 33 } } }, "range": [ - 464, - 489 + 429, + 454 ], "loc": { "start": { - "line": 18, + "line": 17, "column": 8 }, "end": { - "line": 18, + "line": 17, "column": 33 } } }, "range": [ - 464, - 490 + 429, + 455 ], "loc": { "start": { - "line": 18, + "line": 17, "column": 8 }, "end": { - "line": 18, + "line": 17, "column": 34 } } } ], "range": [ - 252, - 496 + 253, + 461 ], "loc": { "start": { @@ -1003,7 +897,7 @@ "column": 20 }, "end": { - "line": 19, + "line": 18, "column": 5 } } @@ -1011,8 +905,8 @@ "generator": false, "expression": false, "range": [ - 247, - 496 + 248, + 461 ], "loc": { "start": { @@ -1020,7 +914,7 @@ "column": 15 }, "end": { - "line": 19, + "line": 18, "column": 5 } } @@ -1028,8 +922,8 @@ "kind": "constructor", "computed": false, "range": [ - 236, - 496 + 237, + 461 ], "loc": { "start": { @@ -1037,7 +931,7 @@ "column": 4 }, "end": { - "line": 19, + "line": 18, "column": 5 } }, @@ -1046,8 +940,8 @@ "type": "Block", "value": "*\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n ", "range": [ - 122, - 231 + 123, + 232 ], "loc": { "start": { @@ -1069,16 +963,16 @@ "type": "Identifier", "name": "init", "range": [ - 502, - 506 + 467, + 471 ], "loc": { "start": { - "line": 21, + "line": 20, "column": 4 }, "end": { - "line": 21, + "line": 20, "column": 8 } } @@ -1103,16 +997,16 @@ "object": { "type": "ThisExpression", "range": [ - 518, - 522 + 484, + 488 ], "loc": { "start": { - "line": 22, + "line": 21, "column": 8 }, "end": { - "line": 22, + "line": 21, "column": 12 } } @@ -1121,31 +1015,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 523, - 530 + 489, + 496 ], "loc": { "start": { - "line": 22, + "line": 21, "column": 13 }, "end": { - "line": 22, + "line": 21, "column": 20 } } }, "range": [ - 518, - 530 + 484, + 496 ], "loc": { "start": { - "line": 22, + "line": 21, "column": 8 }, "end": { - "line": 22, + "line": 21, "column": 20 } } @@ -1154,31 +1048,31 @@ "type": "Identifier", "name": "on", "range": [ - 531, - 533 + 497, + 499 ], "loc": { "start": { - "line": 22, + "line": 21, "column": 21 }, "end": { - "line": 22, + "line": 21, "column": 23 } } }, "range": [ - 518, - 533 + 484, + 499 ], "loc": { "start": { - "line": 22, + "line": 21, "column": 8 }, "end": { - "line": 22, + "line": 21, "column": 23 } } @@ -1192,16 +1086,16 @@ "value": "before-filtering", "raw": "'before-filtering'", "range": [ - 548, - 566 + 514, + 532 ], "loc": { "start": { - "line": 23, + "line": 22, "column": 13 }, "end": { - "line": 23, + "line": 22, "column": 31 } } @@ -1211,32 +1105,32 @@ "value": "destroy", "raw": "'destroy'", "range": [ - 568, - 577 + 534, + 543 ], "loc": { "start": { - "line": 23, + "line": 22, "column": 33 }, "end": { - "line": 23, + "line": 22, "column": 42 } } } ], "range": [ - 547, - 578 + 513, + 544 ], "loc": { "start": { - "line": 23, + "line": 22, "column": 12 }, "end": { - "line": 23, + "line": 22, "column": 43 } } @@ -1253,17 +1147,17 @@ "object": { "type": "ThisExpression", "range": [ - 597, - 601 + 564, + 568 ], "loc": { "start": { - "line": 24, - "column": 17 + "line": 23, + "column": 18 }, "end": { - "line": 24, - "column": 21 + "line": 23, + "column": 22 } } }, @@ -1271,95 +1165,95 @@ "type": "Identifier", "name": "unhighlightAll", "range": [ - 602, - 616 + 569, + 583 ], "loc": { "start": { - "line": 24, - "column": 22 + "line": 23, + "column": 23 }, "end": { - "line": 24, - "column": 36 + "line": 23, + "column": 37 } } }, "range": [ - 597, - 616 + 564, + 583 ], "loc": { "start": { - "line": 24, - "column": 17 + "line": 23, + "column": 18 }, "end": { - "line": 24, - "column": 36 + "line": 23, + "column": 37 } } }, "arguments": [], "range": [ - 597, - 618 + 564, + 585 ], "loc": { "start": { - "line": 24, - "column": 17 + "line": 23, + "column": 18 }, "end": { - "line": 24, - "column": 38 + "line": 23, + "column": 39 } } }, "generator": false, "expression": true, "range": [ - 592, - 618 + 558, + 585 ], "loc": { "start": { - "line": 24, + "line": 23, "column": 12 }, "end": { - "line": 24, - "column": 38 + "line": 23, + "column": 39 } } } ], "range": [ - 518, - 628 + 484, + 595 ], "loc": { "start": { - "line": 22, + "line": 21, "column": 8 }, "end": { - "line": 25, + "line": 24, "column": 9 } } }, "range": [ - 518, - 629 + 484, + 596 ], "loc": { "start": { - "line": 22, + "line": 21, "column": 8 }, "end": { - "line": 25, + "line": 24, "column": 10 } } @@ -1377,16 +1271,16 @@ "object": { "type": "ThisExpression", "range": [ - 638, - 642 + 605, + 609 ], "loc": { "start": { - "line": 26, + "line": 25, "column": 8 }, "end": { - "line": 26, + "line": 25, "column": 12 } } @@ -1395,31 +1289,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 643, - 650 + 610, + 617 ], "loc": { "start": { - "line": 26, + "line": 25, "column": 13 }, "end": { - "line": 26, + "line": 25, "column": 20 } } }, "range": [ - 638, - 650 + 605, + 617 ], "loc": { "start": { - "line": 26, + "line": 25, "column": 8 }, "end": { - "line": 26, + "line": 25, "column": 20 } } @@ -1428,31 +1322,31 @@ "type": "Identifier", "name": "on", "range": [ - 651, - 653 + 618, + 620 ], "loc": { "start": { - "line": 26, + "line": 25, "column": 21 }, "end": { - "line": 26, + "line": 25, "column": 23 } } }, "range": [ - 638, - 653 + 605, + 620 ], "loc": { "start": { - "line": 26, + "line": 25, "column": 8 }, "end": { - "line": 26, + "line": 25, "column": 23 } } @@ -1466,32 +1360,32 @@ "value": "highlight-keyword", "raw": "'highlight-keyword'", "range": [ - 668, - 687 + 635, + 654 ], "loc": { "start": { - "line": 27, + "line": 26, "column": 13 }, "end": { - "line": 27, + "line": 26, "column": 32 } } } ], "range": [ - 667, - 688 + 634, + 655 ], "loc": { "start": { - "line": 27, + "line": 26, "column": 12 }, "end": { - "line": 27, + "line": 26, "column": 33 } } @@ -1504,16 +1398,16 @@ "type": "Identifier", "name": "tf", "range": [ - 703, - 705 + 670, + 672 ], "loc": { "start": { - "line": 28, + "line": 27, "column": 13 }, "end": { - "line": 28, + "line": 27, "column": 15 } } @@ -1522,16 +1416,16 @@ "type": "Identifier", "name": "cell", "range": [ - 707, - 711 + 674, + 678 ], "loc": { "start": { - "line": 28, + "line": 27, "column": 17 }, "end": { - "line": 28, + "line": 27, "column": 21 } } @@ -1540,16 +1434,16 @@ "type": "Identifier", "name": "word", "range": [ - 713, - 717 + 680, + 684 ], "loc": { "start": { - "line": 28, + "line": 27, "column": 23 }, "end": { - "line": 28, + "line": 27, "column": 27 } } @@ -1563,16 +1457,16 @@ "object": { "type": "ThisExpression", "range": [ - 737, - 741 + 705, + 709 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 16 }, "end": { - "line": 29, + "line": 28, "column": 20 } } @@ -1581,31 +1475,31 @@ "type": "Identifier", "name": "highlight", "range": [ - 742, - 751 + 710, + 719 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 21 }, "end": { - "line": 29, + "line": 28, "column": 30 } } }, "range": [ - 737, - 751 + 705, + 719 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 16 }, "end": { - "line": 29, + "line": 28, "column": 30 } } @@ -1615,16 +1509,16 @@ "type": "Identifier", "name": "cell", "range": [ - 752, - 756 + 720, + 724 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 31 }, "end": { - "line": 29, + "line": 28, "column": 35 } } @@ -1633,16 +1527,16 @@ "type": "Identifier", "name": "word", "range": [ - 758, - 762 + 726, + 730 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 37 }, "end": { - "line": 29, + "line": 28, "column": 41 } } @@ -1653,16 +1547,16 @@ "object": { "type": "ThisExpression", "range": [ - 764, - 768 + 732, + 736 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 43 }, "end": { - "line": 29, + "line": 28, "column": 47 } } @@ -1671,47 +1565,47 @@ "type": "Identifier", "name": "highlightCssClass", "range": [ - 769, - 786 + 737, + 754 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 48 }, "end": { - "line": 29, + "line": 28, "column": 65 } } }, "range": [ - 764, - 786 + 732, + 754 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 43 }, "end": { - "line": 29, + "line": 28, "column": 65 } } } ], "range": [ - 737, - 787 + 705, + 755 ], "loc": { "start": { - "line": 29, + "line": 28, "column": 16 }, "end": { - "line": 29, + "line": 28, "column": 66 } } @@ -1719,63 +1613,63 @@ "generator": false, "expression": true, "range": [ - 702, - 787 + 669, + 755 ], "loc": { "start": { - "line": 28, + "line": 27, "column": 12 }, "end": { - "line": 29, + "line": 28, "column": 66 } } } ], "range": [ - 638, - 797 + 605, + 765 ], "loc": { "start": { - "line": 26, + "line": 25, "column": 8 }, "end": { - "line": 30, + "line": 29, "column": 9 } } }, "range": [ - 638, - 798 + 605, + 766 ], "loc": { "start": { - "line": 26, + "line": 25, "column": 8 }, "end": { - "line": 30, + "line": 29, "column": 10 } } } ], "range": [ - 508, - 804 + 474, + 772 ], "loc": { "start": { - "line": 21, - "column": 10 + "line": 20, + "column": 11 }, "end": { - "line": 31, + "line": 30, "column": 5 } } @@ -1783,16 +1677,16 @@ "generator": false, "expression": false, "range": [ - 506, - 804 + 471, + 772 ], "loc": { "start": { - "line": 21, + "line": 20, "column": 8 }, "end": { - "line": 31, + "line": 30, "column": 5 } } @@ -1800,34 +1694,34 @@ "kind": "method", "computed": false, "range": [ - 502, - 804 + 467, + 772 ], "loc": { "start": { - "line": 21, + "line": 20, "column": 4 }, "end": { - "line": 31, + "line": 30, "column": 5 } }, "trailingComments": [ { "type": "Block", - "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n ", + "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n ", "range": [ - 810, - 1003 + 778, + 1012 ], "loc": { "start": { - "line": 33, + "line": 32, "column": 4 }, "end": { - "line": 38, + "line": 39, "column": 7 } } @@ -1841,16 +1735,16 @@ "type": "Identifier", "name": "highlight", "range": [ - 1008, - 1017 + 1017, + 1026 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 4 }, "end": { - "line": 39, + "line": 40, "column": 13 } } @@ -1863,16 +1757,16 @@ "type": "Identifier", "name": "node", "range": [ - 1018, - 1022 + 1027, + 1031 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 14 }, "end": { - "line": 39, + "line": 40, "column": 18 } } @@ -1881,16 +1775,16 @@ "type": "Identifier", "name": "word", "range": [ - 1024, - 1028 + 1033, + 1037 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 20 }, "end": { - "line": 39, + "line": 40, "column": 24 } } @@ -1899,16 +1793,16 @@ "type": "Identifier", "name": "cssClass", "range": [ - 1030, - 1038 + 1039, + 1047 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 26 }, "end": { - "line": 39, + "line": 40, "column": 34 } } @@ -1926,17 +1820,17 @@ "type": "Identifier", "name": "node", "range": [ - 1098, - 1102 + 1109, + 1113 ], "loc": { "start": { - "line": 41, - "column": 11 + "line": 42, + "column": 12 }, "end": { - "line": 41, - "column": 15 + "line": 42, + "column": 16 } } }, @@ -1944,32 +1838,32 @@ "type": "Identifier", "name": "hasChildNodes", "range": [ - 1103, - 1116 + 1114, + 1127 ], "loc": { "start": { - "line": 41, - "column": 16 + "line": 42, + "column": 17 }, "end": { - "line": 41, - "column": 29 + "line": 42, + "column": 30 } } }, "range": [ - 1098, - 1116 + 1109, + 1127 ], "loc": { "start": { - "line": 41, - "column": 11 + "line": 42, + "column": 12 }, "end": { - "line": 41, - "column": 29 + "line": 42, + "column": 30 } } }, @@ -1985,16 +1879,16 @@ "type": "Identifier", "name": "children", "range": [ - 1135, - 1143 + 1147, + 1155 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 16 }, "end": { - "line": 42, + "line": 43, "column": 24 } } @@ -2006,16 +1900,16 @@ "type": "Identifier", "name": "node", "range": [ - 1146, - 1150 + 1158, + 1162 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 27 }, "end": { - "line": 42, + "line": 43, "column": 31 } } @@ -2024,63 +1918,63 @@ "type": "Identifier", "name": "childNodes", "range": [ - 1151, - 1161 + 1163, + 1173 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 32 }, "end": { - "line": 42, + "line": 43, "column": 42 } } }, "range": [ - 1146, - 1161 + 1158, + 1173 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 27 }, "end": { - "line": 42, + "line": 43, "column": 42 } } }, "range": [ - 1135, - 1161 + 1147, + 1173 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 16 }, "end": { - "line": 42, + "line": 43, "column": 42 } } } ], - "kind": "var", + "kind": "let", "range": [ - 1131, - 1162 + 1143, + 1174 ], "loc": { "start": { - "line": 42, + "line": 43, "column": 12 }, "end": { - "line": 42, + "line": 43, "column": 43 } } @@ -2096,17 +1990,17 @@ "type": "Identifier", "name": "i", "range": [ - 1183, - 1184 + 1196, + 1197 ], "loc": { "start": { - "line": 43, - "column": 20 + "line": 44, + "column": 21 }, "end": { - "line": 43, - "column": 21 + "line": 44, + "column": 22 } } }, @@ -2115,49 +2009,49 @@ "value": 0, "raw": "0", "range": [ - 1185, - 1186 + 1200, + 1201 ], "loc": { "start": { - "line": 43, - "column": 22 + "line": 44, + "column": 25 }, "end": { - "line": 43, - "column": 23 + "line": 44, + "column": 26 } } }, "range": [ - 1183, - 1186 + 1196, + 1201 ], "loc": { "start": { - "line": 43, - "column": 20 + "line": 44, + "column": 21 }, "end": { - "line": 43, - "column": 23 + "line": 44, + "column": 26 } } } ], - "kind": "var", + "kind": "let", "range": [ - 1179, - 1186 + 1192, + 1201 ], "loc": { "start": { - "line": 43, - "column": 16 + "line": 44, + "column": 17 }, "end": { - "line": 43, - "column": 23 + "line": 44, + "column": 26 } } }, @@ -2168,17 +2062,17 @@ "type": "Identifier", "name": "i", "range": [ - 1188, - 1189 + 1203, + 1204 ], "loc": { "start": { - "line": 43, - "column": 25 + "line": 44, + "column": 28 }, "end": { - "line": 43, - "column": 26 + "line": 44, + "column": 29 } } }, @@ -2189,17 +2083,17 @@ "type": "Identifier", "name": "children", "range": [ - 1190, - 1198 + 1207, + 1215 ], "loc": { "start": { - "line": 43, - "column": 27 + "line": 44, + "column": 32 }, "end": { - "line": 43, - "column": 35 + "line": 44, + "column": 40 } } }, @@ -2207,47 +2101,47 @@ "type": "Identifier", "name": "length", "range": [ - 1199, - 1205 + 1216, + 1222 ], "loc": { "start": { - "line": 43, - "column": 36 + "line": 44, + "column": 41 }, "end": { - "line": 43, - "column": 42 + "line": 44, + "column": 47 } } }, "range": [ - 1190, - 1205 + 1207, + 1222 ], "loc": { "start": { - "line": 43, - "column": 27 + "line": 44, + "column": 32 }, "end": { - "line": 43, - "column": 42 + "line": 44, + "column": 47 } } }, "range": [ - 1188, - 1205 + 1203, + 1222 ], "loc": { "start": { - "line": 43, - "column": 25 + "line": 44, + "column": 28 }, "end": { - "line": 43, - "column": 42 + "line": 44, + "column": 47 } } }, @@ -2258,33 +2152,33 @@ "type": "Identifier", "name": "i", "range": [ - 1207, - 1208 + 1224, + 1225 ], "loc": { "start": { - "line": 43, - "column": 44 + "line": 44, + "column": 49 }, "end": { - "line": 43, - "column": 45 + "line": 44, + "column": 50 } } }, "prefix": false, "range": [ - 1207, - 1210 + 1224, + 1227 ], "loc": { "start": { - "line": 43, - "column": 44 + "line": 44, + "column": 49 }, "end": { - "line": 43, - "column": 47 + "line": 44, + "column": 52 } } }, @@ -2301,16 +2195,16 @@ "object": { "type": "ThisExpression", "range": [ - 1229, - 1233 + 1247, + 1251 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 16 }, "end": { - "line": 44, + "line": 45, "column": 20 } } @@ -2319,31 +2213,31 @@ "type": "Identifier", "name": "highlight", "range": [ - 1234, - 1243 + 1252, + 1261 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 21 }, "end": { - "line": 44, + "line": 45, "column": 30 } } }, "range": [ - 1229, - 1243 + 1247, + 1261 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 16 }, "end": { - "line": 44, + "line": 45, "column": 30 } } @@ -2356,16 +2250,16 @@ "type": "Identifier", "name": "children", "range": [ - 1244, - 1252 + 1262, + 1270 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 31 }, "end": { - "line": 44, + "line": 45, "column": 39 } } @@ -2374,31 +2268,31 @@ "type": "Identifier", "name": "i", "range": [ - 1253, - 1254 + 1271, + 1272 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 40 }, "end": { - "line": 44, + "line": 45, "column": 41 } } }, "range": [ - 1244, - 1255 + 1262, + 1273 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 31 }, "end": { - "line": 44, + "line": 45, "column": 42 } } @@ -2407,16 +2301,16 @@ "type": "Identifier", "name": "word", "range": [ - 1257, - 1261 + 1275, + 1279 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 44 }, "end": { - "line": 44, + "line": 45, "column": 48 } } @@ -2425,110 +2319,110 @@ "type": "Identifier", "name": "cssClass", "range": [ - 1263, - 1271 + 1281, + 1289 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 50 }, "end": { - "line": 44, + "line": 45, "column": 58 } } } ], "range": [ - 1229, - 1272 + 1247, + 1290 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 16 }, "end": { - "line": 44, + "line": 45, "column": 59 } } }, "range": [ - 1229, - 1273 + 1247, + 1291 ], "loc": { "start": { - "line": 44, + "line": 45, "column": 16 }, "end": { - "line": 44, + "line": 45, "column": 60 } } } ], "range": [ - 1211, - 1287 + 1229, + 1305 ], "loc": { "start": { - "line": 43, - "column": 48 + "line": 44, + "column": 54 }, "end": { - "line": 45, + "line": 46, "column": 13 } } }, "range": [ - 1175, - 1287 + 1187, + 1305 ], "loc": { "start": { - "line": 43, + "line": 44, "column": 12 }, "end": { - "line": 45, + "line": 46, "column": 13 } } } ], "range": [ - 1117, - 1297 + 1129, + 1315 ], "loc": { "start": { - "line": 41, - "column": 30 + "line": 42, + "column": 32 }, "end": { - "line": 46, + "line": 47, "column": 9 } } }, "alternate": null, "range": [ - 1095, - 1297 + 1105, + 1315 ], "loc": { "start": { - "line": 41, + "line": 42, "column": 8 }, "end": { - "line": 46, + "line": 47, "column": 9 } }, @@ -2537,16 +2431,16 @@ "type": "Line", "value": " Iterate into this nodes childNodes", "range": [ - 1049, - 1086 + 1059, + 1096 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 8 }, "end": { - "line": 40, + "line": 41, "column": 45 } } @@ -2565,17 +2459,17 @@ "type": "Identifier", "name": "node", "range": [ - 1310, - 1314 + 1329, + 1333 ], "loc": { "start": { - "line": 48, - "column": 11 + "line": 49, + "column": 12 }, "end": { - "line": 48, - "column": 15 + "line": 49, + "column": 16 } } }, @@ -2583,32 +2477,32 @@ "type": "Identifier", "name": "nodeType", "range": [ - 1315, - 1323 + 1334, + 1342 ], "loc": { "start": { - "line": 48, - "column": 16 + "line": 49, + "column": 17 }, "end": { - "line": 48, - "column": 24 + "line": 49, + "column": 25 } } }, "range": [ - 1310, - 1323 + 1329, + 1342 ], "loc": { "start": { - "line": 48, - "column": 11 + "line": 49, + "column": 12 }, "end": { - "line": 48, - "column": 24 + "line": 49, + "column": 25 } } }, @@ -2617,32 +2511,32 @@ "value": 3, "raw": "3", "range": [ - 1328, - 1329 + 1347, + 1348 ], "loc": { "start": { - "line": 48, - "column": 29 + "line": 49, + "column": 30 }, "end": { - "line": 48, - "column": 30 + "line": 49, + "column": 31 } } }, "range": [ - 1310, - 1329 + 1329, + 1348 ], "loc": { "start": { - "line": 48, - "column": 11 + "line": 49, + "column": 12 }, "end": { - "line": 48, - "column": 30 + "line": 49, + "column": 31 } } }, @@ -2658,16 +2552,16 @@ "type": "Identifier", "name": "tempNodeVal", "range": [ - 1348, - 1359 + 1368, + 1379 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 16 }, "end": { - "line": 49, + "line": 50, "column": 27 } } @@ -2681,16 +2575,16 @@ "type": "Identifier", "name": "Str", "range": [ - 1362, - 1365 + 1382, + 1385 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 30 }, "end": { - "line": 49, + "line": 50, "column": 33 } } @@ -2699,31 +2593,31 @@ "type": "Identifier", "name": "lower", "range": [ - 1366, - 1371 + 1386, + 1391 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 34 }, "end": { - "line": 49, + "line": 50, "column": 39 } } }, "range": [ - 1362, - 1371 + 1382, + 1391 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 30 }, "end": { - "line": 49, + "line": 50, "column": 39 } } @@ -2736,16 +2630,16 @@ "type": "Identifier", "name": "node", "range": [ - 1372, - 1376 + 1392, + 1396 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 40 }, "end": { - "line": 49, + "line": 50, "column": 44 } } @@ -2754,79 +2648,79 @@ "type": "Identifier", "name": "nodeValue", "range": [ - 1377, - 1386 + 1397, + 1406 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 45 }, "end": { - "line": 49, + "line": 50, "column": 54 } } }, "range": [ - 1372, - 1386 + 1392, + 1406 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 40 }, "end": { - "line": 49, + "line": 50, "column": 54 } } } ], "range": [ - 1362, - 1387 + 1382, + 1407 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 30 }, "end": { - "line": 49, + "line": 50, "column": 55 } } }, "range": [ - 1348, - 1387 + 1368, + 1407 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 16 }, "end": { - "line": 49, + "line": 50, "column": 55 } } } ], - "kind": "var", + "kind": "let", "range": [ - 1344, - 1388 + 1364, + 1408 ], "loc": { "start": { - "line": 49, + "line": 50, "column": 12 }, "end": { - "line": 49, + "line": 50, "column": 56 } } @@ -2840,16 +2734,16 @@ "type": "Identifier", "name": "tempWordVal", "range": [ - 1405, - 1416 + 1425, + 1436 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 16 }, "end": { - "line": 50, + "line": 51, "column": 27 } } @@ -2863,16 +2757,16 @@ "type": "Identifier", "name": "Str", "range": [ - 1419, - 1422 + 1439, + 1442 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 30 }, "end": { - "line": 50, + "line": 51, "column": 33 } } @@ -2881,31 +2775,31 @@ "type": "Identifier", "name": "lower", "range": [ - 1423, - 1428 + 1443, + 1448 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 34 }, "end": { - "line": 50, + "line": 51, "column": 39 } } }, "range": [ - 1419, - 1428 + 1439, + 1448 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 30 }, "end": { - "line": 50, + "line": 51, "column": 39 } } @@ -2915,64 +2809,64 @@ "type": "Identifier", "name": "word", "range": [ - 1429, - 1433 + 1449, + 1453 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 40 }, "end": { - "line": 50, + "line": 51, "column": 44 } } } ], "range": [ - 1419, - 1434 + 1439, + 1454 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 30 }, "end": { - "line": 50, + "line": 51, "column": 45 } } }, "range": [ - 1405, - 1434 + 1425, + 1454 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 16 }, "end": { - "line": 50, + "line": 51, "column": 45 } } } ], - "kind": "var", + "kind": "let", "range": [ - 1401, - 1435 + 1421, + 1455 ], "loc": { "start": { - "line": 50, + "line": 51, "column": 12 }, "end": { - "line": 50, + "line": 51, "column": 46 } } @@ -2981,7 +2875,7 @@ "type": "IfStatement", "test": { "type": "BinaryExpression", - "operator": "!=", + "operator": "!==", "left": { "type": "CallExpression", "callee": { @@ -2991,17 +2885,17 @@ "type": "Identifier", "name": "tempNodeVal", "range": [ - 1451, - 1462 + 1472, + 1483 ], "loc": { "start": { - "line": 51, - "column": 15 + "line": 52, + "column": 16 }, "end": { - "line": 51, - "column": 26 + "line": 52, + "column": 27 } } }, @@ -3009,32 +2903,32 @@ "type": "Identifier", "name": "indexOf", "range": [ - 1463, - 1470 + 1484, + 1491 ], "loc": { "start": { - "line": 51, - "column": 27 + "line": 52, + "column": 28 }, "end": { - "line": 51, - "column": 34 + "line": 52, + "column": 35 } } }, "range": [ - 1451, - 1470 + 1472, + 1491 ], "loc": { "start": { - "line": 51, - "column": 15 + "line": 52, + "column": 16 }, "end": { - "line": 51, - "column": 34 + "line": 52, + "column": 35 } } }, @@ -3043,33 +2937,33 @@ "type": "Identifier", "name": "tempWordVal", "range": [ - 1471, - 1482 + 1492, + 1503 ], "loc": { "start": { - "line": 51, - "column": 35 + "line": 52, + "column": 36 }, "end": { - "line": 51, - "column": 46 + "line": 52, + "column": 47 } } } ], "range": [ - 1451, - 1483 + 1472, + 1504 ], "loc": { "start": { - "line": 51, - "column": 15 + "line": 52, + "column": 16 }, "end": { - "line": 51, - "column": 47 + "line": 52, + "column": 48 } } }, @@ -3081,48 +2975,48 @@ "value": 1, "raw": "1", "range": [ - 1488, - 1489 + 1510, + 1511 ], "loc": { "start": { - "line": 51, - "column": 52 + "line": 52, + "column": 54 }, "end": { - "line": 51, - "column": 53 + "line": 52, + "column": 55 } } }, "prefix": true, "range": [ - 1487, - 1489 + 1509, + 1511 ], "loc": { "start": { - "line": 51, - "column": 51 + "line": 52, + "column": 53 }, "end": { - "line": 51, - "column": 53 + "line": 52, + "column": 55 } } }, "range": [ - 1451, - 1489 + 1472, + 1511 ], "loc": { "start": { - "line": 51, - "column": 15 + "line": 52, + "column": 16 }, "end": { - "line": 51, - "column": 53 + "line": 52, + "column": 55 } } }, @@ -3138,16 +3032,16 @@ "type": "Identifier", "name": "pn", "range": [ - 1512, - 1514 + 1535, + 1537 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 20 }, "end": { - "line": 52, + "line": 53, "column": 22 } } @@ -3159,16 +3053,16 @@ "type": "Identifier", "name": "node", "range": [ - 1517, - 1521 + 1540, + 1544 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 25 }, "end": { - "line": 52, + "line": 53, "column": 29 } } @@ -3177,63 +3071,63 @@ "type": "Identifier", "name": "parentNode", "range": [ - 1522, - 1532 + 1545, + 1555 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 30 }, "end": { - "line": 52, + "line": 53, "column": 40 } } }, "range": [ - 1517, - 1532 + 1540, + 1555 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 25 }, "end": { - "line": 52, + "line": 53, "column": 40 } } }, "range": [ - 1512, - 1532 + 1535, + 1555 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 20 }, "end": { - "line": 52, + "line": 53, "column": 40 } } } ], - "kind": "var", + "kind": "let", "range": [ - 1508, - 1533 + 1531, + 1556 ], "loc": { "start": { - "line": 52, + "line": 53, "column": 16 }, "end": { - "line": 52, + "line": 53, "column": 41 } } @@ -3247,23 +3141,23 @@ "type": "Identifier", "name": "pn", "range": [ - 1553, - 1555 + 1577, + 1579 ], "loc": { "start": { - "line": 53, - "column": 19 + "line": 54, + "column": 20 }, "end": { - "line": 53, - "column": 21 + "line": 54, + "column": 22 } } }, "right": { "type": "BinaryExpression", - "operator": "!=", + "operator": "!==", "left": { "type": "MemberExpression", "computed": false, @@ -3271,17 +3165,17 @@ "type": "Identifier", "name": "pn", "range": [ - 1559, - 1561 + 1583, + 1585 ], "loc": { "start": { - "line": 53, - "column": 25 + "line": 54, + "column": 26 }, "end": { - "line": 53, - "column": 27 + "line": 54, + "column": 28 } } }, @@ -3289,32 +3183,32 @@ "type": "Identifier", "name": "className", "range": [ - 1562, - 1571 + 1586, + 1595 ], "loc": { "start": { - "line": 53, - "column": 28 + "line": 54, + "column": 29 }, "end": { - "line": 53, - "column": 37 + "line": 54, + "column": 38 } } }, "range": [ - 1559, - 1571 + 1583, + 1595 ], "loc": { "start": { - "line": 53, - "column": 25 + "line": 54, + "column": 26 }, "end": { - "line": 53, - "column": 37 + "line": 54, + "column": 38 } } }, @@ -3322,47 +3216,47 @@ "type": "Identifier", "name": "cssClass", "range": [ - 1575, - 1583 + 1600, + 1608 ], "loc": { "start": { - "line": 53, - "column": 41 + "line": 54, + "column": 43 }, "end": { - "line": 53, - "column": 49 + "line": 54, + "column": 51 } } }, "range": [ - 1559, - 1583 + 1583, + 1608 ], "loc": { "start": { - "line": 53, - "column": 25 + "line": 54, + "column": 26 }, "end": { - "line": 53, - "column": 49 + "line": 54, + "column": 51 } } }, "range": [ - 1553, - 1583 + 1577, + 1608 ], "loc": { "start": { - "line": 53, - "column": 19 + "line": 54, + "column": 20 }, "end": { - "line": 53, - "column": 49 + "line": 54, + "column": 51 } } }, @@ -3378,16 +3272,16 @@ "type": "Identifier", "name": "nv", "range": [ - 1658, - 1660 + 1684, + 1686 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 24 }, "end": { - "line": 55, + "line": 56, "column": 26 } } @@ -3399,16 +3293,16 @@ "type": "Identifier", "name": "node", "range": [ - 1663, - 1667 + 1689, + 1693 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 29 }, "end": { - "line": 55, + "line": 56, "column": 33 } } @@ -3417,46 +3311,46 @@ "type": "Identifier", "name": "nodeValue", "range": [ - 1668, - 1677 + 1694, + 1703 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 34 }, "end": { - "line": 55, + "line": 56, "column": 43 } } }, "range": [ - 1663, - 1677 + 1689, + 1703 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 29 }, "end": { - "line": 55, + "line": 56, "column": 43 } } }, "range": [ - 1658, - 1677 + 1684, + 1703 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 24 }, "end": { - "line": 55, + "line": 56, "column": 43 } } @@ -3467,16 +3361,16 @@ "type": "Identifier", "name": "ni", "range": [ - 1703, - 1705 + 1729, + 1731 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 24 }, "end": { - "line": 56, + "line": 57, "column": 26 } } @@ -3490,16 +3384,16 @@ "type": "Identifier", "name": "tempNodeVal", "range": [ - 1708, - 1719 + 1734, + 1745 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 29 }, "end": { - "line": 56, + "line": 57, "column": 40 } } @@ -3508,31 +3402,31 @@ "type": "Identifier", "name": "indexOf", "range": [ - 1720, - 1727 + 1746, + 1753 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 41 }, "end": { - "line": 56, + "line": 57, "column": 48 } } }, "range": [ - 1708, - 1727 + 1734, + 1753 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 29 }, "end": { - "line": 56, + "line": 57, "column": 48 } } @@ -3542,47 +3436,47 @@ "type": "Identifier", "name": "tempWordVal", "range": [ - 1728, - 1739 + 1754, + 1765 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 49 }, "end": { - "line": 56, + "line": 57, "column": 60 } } } ], "range": [ - 1708, - 1740 + 1734, + 1766 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 29 }, "end": { - "line": 56, + "line": 57, "column": 61 } } }, "range": [ - 1703, - 1740 + 1729, + 1766 ], "loc": { "start": { - "line": 56, + "line": 57, "column": 24 }, "end": { - "line": 56, + "line": 57, "column": 61 } } @@ -3593,16 +3487,16 @@ "type": "Identifier", "name": "before", "range": [ - 1828, - 1834 + 1854, + 1860 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 24 }, "end": { - "line": 58, + "line": 59, "column": 30 } } @@ -3616,16 +3510,16 @@ "type": "Identifier", "name": "Dom", "range": [ - 1837, - 1840 + 1863, + 1866 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 33 }, "end": { - "line": 58, + "line": 59, "column": 36 } } @@ -3634,31 +3528,31 @@ "type": "Identifier", "name": "text", "range": [ - 1841, - 1845 + 1867, + 1871 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 37 }, "end": { - "line": 58, + "line": 59, "column": 41 } } }, "range": [ - 1837, - 1845 + 1863, + 1871 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 33 }, "end": { - "line": 58, + "line": 59, "column": 41 } } @@ -3673,16 +3567,16 @@ "type": "Identifier", "name": "nv", "range": [ - 1846, - 1848 + 1872, + 1874 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 42 }, "end": { - "line": 58, + "line": 59, "column": 44 } } @@ -3691,31 +3585,31 @@ "type": "Identifier", "name": "substr", "range": [ - 1849, - 1855 + 1875, + 1881 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 45 }, "end": { - "line": 58, + "line": 59, "column": 51 } } }, "range": [ - 1846, - 1855 + 1872, + 1881 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 42 }, "end": { - "line": 58, + "line": 59, "column": 51 } } @@ -3726,16 +3620,16 @@ "value": 0, "raw": "0", "range": [ - 1856, - 1857 + 1882, + 1883 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 52 }, "end": { - "line": 58, + "line": 59, "column": 53 } } @@ -3744,63 +3638,63 @@ "type": "Identifier", "name": "ni", "range": [ - 1859, - 1861 + 1885, + 1887 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 55 }, "end": { - "line": 58, + "line": 59, "column": 57 } } } ], "range": [ - 1846, - 1862 + 1872, + 1888 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 42 }, "end": { - "line": 58, + "line": 59, "column": 58 } } } ], "range": [ - 1837, - 1863 + 1863, + 1889 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 33 }, "end": { - "line": 58, + "line": 59, "column": 59 } } }, "range": [ - 1828, - 1863 + 1854, + 1889 ], "loc": { "start": { - "line": 58, + "line": 59, "column": 24 }, "end": { - "line": 58, + "line": 59, "column": 59 } }, @@ -3809,16 +3703,16 @@ "type": "Line", "value": " Create a load of replacement nodes", "range": [ - 1766, - 1803 + 1792, + 1829 ], "loc": { "start": { - "line": 57, + "line": 58, "column": 24 }, "end": { - "line": 57, + "line": 58, "column": 61 } } @@ -3831,16 +3725,16 @@ "type": "Identifier", "name": "docWordVal", "range": [ - 1889, - 1899 + 1915, + 1925 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 24 }, "end": { - "line": 59, + "line": 60, "column": 34 } } @@ -3854,16 +3748,16 @@ "type": "Identifier", "name": "nv", "range": [ - 1902, - 1904 + 1928, + 1930 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 37 }, "end": { - "line": 59, + "line": 60, "column": 39 } } @@ -3872,31 +3766,31 @@ "type": "Identifier", "name": "substr", "range": [ - 1905, - 1911 + 1931, + 1937 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 40 }, "end": { - "line": 59, + "line": 60, "column": 46 } } }, "range": [ - 1902, - 1911 + 1928, + 1937 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 37 }, "end": { - "line": 59, + "line": 60, "column": 46 } } @@ -3906,16 +3800,16 @@ "type": "Identifier", "name": "ni", "range": [ - 1912, - 1914 + 1938, + 1940 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 47 }, "end": { - "line": 59, + "line": 60, "column": 49 } } @@ -3927,17 +3821,17 @@ "type": "Identifier", "name": "word", "range": [ - 1915, - 1919 + 1942, + 1946 ], "loc": { "start": { - "line": 59, - "column": 50 + "line": 60, + "column": 51 }, "end": { - "line": 59, - "column": 54 + "line": 60, + "column": 55 } } }, @@ -3945,63 +3839,63 @@ "type": "Identifier", "name": "length", "range": [ - 1920, - 1926 + 1947, + 1953 ], "loc": { "start": { - "line": 59, - "column": 55 + "line": 60, + "column": 56 }, "end": { - "line": 59, - "column": 61 + "line": 60, + "column": 62 } } }, "range": [ - 1915, - 1926 + 1942, + 1953 ], "loc": { "start": { - "line": 59, - "column": 50 + "line": 60, + "column": 51 }, "end": { - "line": 59, - "column": 61 + "line": 60, + "column": 62 } } } ], "range": [ - 1902, - 1927 + 1928, + 1954 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 37 }, "end": { - "line": 59, - "column": 62 + "line": 60, + "column": 63 } } }, "range": [ - 1889, - 1927 + 1915, + 1954 ], "loc": { "start": { - "line": 59, + "line": 60, "column": 24 }, "end": { - "line": 59, - "column": 62 + "line": 60, + "column": 63 } } }, @@ -4011,16 +3905,16 @@ "type": "Identifier", "name": "after", "range": [ - 1953, - 1958 + 1980, + 1985 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 24 }, "end": { - "line": 60, + "line": 61, "column": 29 } } @@ -4034,16 +3928,16 @@ "type": "Identifier", "name": "Dom", "range": [ - 1961, - 1964 + 1988, + 1991 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 32 }, "end": { - "line": 60, + "line": 61, "column": 35 } } @@ -4052,31 +3946,31 @@ "type": "Identifier", "name": "text", "range": [ - 1965, - 1969 + 1992, + 1996 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 36 }, "end": { - "line": 60, + "line": 61, "column": 40 } } }, "range": [ - 1961, - 1969 + 1988, + 1996 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 32 }, "end": { - "line": 60, + "line": 61, "column": 40 } } @@ -4091,16 +3985,16 @@ "type": "Identifier", "name": "nv", "range": [ - 1970, - 1972 + 1997, + 1999 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 41 }, "end": { - "line": 60, + "line": 61, "column": 43 } } @@ -4109,31 +4003,31 @@ "type": "Identifier", "name": "substr", "range": [ - 1973, - 1979 + 2000, + 2006 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 44 }, "end": { - "line": 60, + "line": 61, "column": 50 } } }, "range": [ - 1970, - 1979 + 1997, + 2006 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 41 }, "end": { - "line": 60, + "line": 61, "column": 50 } } @@ -4146,16 +4040,16 @@ "type": "Identifier", "name": "ni", "range": [ - 1980, - 1982 + 2007, + 2009 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 51 }, "end": { - "line": 60, + "line": 61, "column": 53 } } @@ -4167,17 +4061,17 @@ "type": "Identifier", "name": "word", "range": [ - 1983, - 1987 + 2012, + 2016 ], "loc": { "start": { - "line": 60, - "column": 54 + "line": 61, + "column": 56 }, "end": { - "line": 60, - "column": 58 + "line": 61, + "column": 60 } } }, @@ -4185,94 +4079,94 @@ "type": "Identifier", "name": "length", "range": [ - 1988, - 1994 + 2017, + 2023 ], "loc": { "start": { - "line": 60, - "column": 59 + "line": 61, + "column": 61 }, "end": { - "line": 60, - "column": 65 + "line": 61, + "column": 67 } } }, "range": [ - 1983, - 1994 + 2012, + 2023 ], "loc": { "start": { - "line": 60, - "column": 54 + "line": 61, + "column": 56 }, "end": { - "line": 60, - "column": 65 + "line": 61, + "column": 67 } } }, "range": [ - 1980, - 1994 + 2007, + 2023 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 51 }, "end": { - "line": 60, - "column": 65 + "line": 61, + "column": 67 } } } ], "range": [ - 1970, - 1995 + 1997, + 2024 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 41 }, "end": { - "line": 60, - "column": 66 + "line": 61, + "column": 68 } } } ], "range": [ - 1961, - 1996 + 1988, + 2025 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 32 }, "end": { - "line": 60, - "column": 67 + "line": 61, + "column": 69 } } }, "range": [ - 1953, - 1996 + 1980, + 2025 ], "loc": { "start": { - "line": 60, + "line": 61, "column": 24 }, "end": { - "line": 60, - "column": 67 + "line": 61, + "column": 69 } } }, @@ -4282,16 +4176,16 @@ "type": "Identifier", "name": "hiwordtext", "range": [ - 2022, - 2032 + 2051, + 2061 ], "loc": { "start": { - "line": 61, + "line": 62, "column": 24 }, "end": { - "line": 61, + "line": 62, "column": 34 } } @@ -4305,16 +4199,16 @@ "type": "Identifier", "name": "Dom", "range": [ - 2035, - 2038 + 2064, + 2067 ], "loc": { "start": { - "line": 61, + "line": 62, "column": 37 }, "end": { - "line": 61, + "line": 62, "column": 40 } } @@ -4323,31 +4217,31 @@ "type": "Identifier", "name": "text", "range": [ - 2039, - 2043 + 2068, + 2072 ], "loc": { "start": { - "line": 61, + "line": 62, "column": 41 }, "end": { - "line": 61, + "line": 62, "column": 45 } } }, "range": [ - 2035, - 2043 + 2064, + 2072 ], "loc": { "start": { - "line": 61, + "line": 62, "column": 37 }, "end": { - "line": 61, + "line": 62, "column": 45 } } @@ -4357,47 +4251,47 @@ "type": "Identifier", "name": "docWordVal", "range": [ - 2044, - 2054 + 2073, + 2083 ], "loc": { "start": { - "line": 61, + "line": 62, "column": 46 }, "end": { - "line": 61, + "line": 62, "column": 56 } } } ], "range": [ - 2035, - 2055 + 2064, + 2084 ], "loc": { "start": { - "line": 61, + "line": 62, "column": 37 }, "end": { - "line": 61, + "line": 62, "column": 57 } } }, "range": [ - 2022, - 2055 + 2051, + 2084 ], "loc": { "start": { - "line": 61, + "line": 62, "column": 24 }, "end": { - "line": 61, + "line": 62, "column": 57 } } @@ -4408,16 +4302,16 @@ "type": "Identifier", "name": "hiword", "range": [ - 2081, - 2087 + 2110, + 2116 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 24 }, "end": { - "line": 62, + "line": 63, "column": 30 } } @@ -4431,16 +4325,16 @@ "type": "Identifier", "name": "Dom", "range": [ - 2090, - 2093 + 2119, + 2122 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 33 }, "end": { - "line": 62, + "line": 63, "column": 36 } } @@ -4449,31 +4343,31 @@ "type": "Identifier", "name": "create", "range": [ - 2094, - 2100 + 2123, + 2129 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 37 }, "end": { - "line": 62, + "line": 63, "column": 43 } } }, "range": [ - 2090, - 2100 + 2119, + 2129 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 33 }, "end": { - "line": 62, + "line": 63, "column": 43 } } @@ -4484,64 +4378,64 @@ "value": "span", "raw": "'span'", "range": [ - 2101, - 2107 + 2130, + 2136 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 44 }, "end": { - "line": 62, + "line": 63, "column": 50 } } } ], "range": [ - 2090, - 2108 + 2119, + 2137 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 33 }, "end": { - "line": 62, + "line": 63, "column": 51 } } }, "range": [ - 2081, - 2108 + 2110, + 2137 ], "loc": { "start": { - "line": 62, + "line": 63, "column": 24 }, "end": { - "line": 62, + "line": 63, "column": 51 } } } ], - "kind": "var", + "kind": "let", "range": [ - 1654, - 2109 + 1680, + 2138 ], "loc": { "start": { - "line": 55, + "line": 56, "column": 20 }, "end": { - "line": 62, + "line": 63, "column": 52 } }, @@ -4550,16 +4444,16 @@ "type": "Line", "value": " word not highlighted yet", "range": [ - 1606, - 1633 + 1632, + 1659 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 20 }, "end": { - "line": 54, + "line": 55, "column": 47 } } @@ -4578,16 +4472,16 @@ "type": "Identifier", "name": "hiword", "range": [ - 2130, - 2136 + 2159, + 2165 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 20 }, "end": { - "line": 63, + "line": 64, "column": 26 } } @@ -4596,31 +4490,31 @@ "type": "Identifier", "name": "className", "range": [ - 2137, - 2146 + 2166, + 2175 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 27 }, "end": { - "line": 63, + "line": 64, "column": 36 } } }, "range": [ - 2130, - 2146 + 2159, + 2175 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 20 }, "end": { - "line": 63, + "line": 64, "column": 36 } } @@ -4629,46 +4523,46 @@ "type": "Identifier", "name": "cssClass", "range": [ - 2149, - 2157 + 2178, + 2186 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 39 }, "end": { - "line": 63, + "line": 64, "column": 47 } } }, "range": [ - 2130, - 2157 + 2159, + 2186 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 20 }, "end": { - "line": 63, + "line": 64, "column": 47 } } }, "range": [ - 2130, - 2158 + 2159, + 2187 ], "loc": { "start": { - "line": 63, + "line": 64, "column": 20 }, "end": { - "line": 63, + "line": 64, "column": 48 } } @@ -4684,16 +4578,16 @@ "type": "Identifier", "name": "hiword", "range": [ - 2179, - 2185 + 2208, + 2214 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 20 }, "end": { - "line": 64, + "line": 65, "column": 26 } } @@ -4702,31 +4596,31 @@ "type": "Identifier", "name": "appendChild", "range": [ - 2186, - 2197 + 2215, + 2226 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 27 }, "end": { - "line": 64, + "line": 65, "column": 38 } } }, "range": [ - 2179, - 2197 + 2208, + 2226 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 20 }, "end": { - "line": 64, + "line": 65, "column": 38 } } @@ -4736,47 +4630,47 @@ "type": "Identifier", "name": "hiwordtext", "range": [ - 2198, - 2208 + 2227, + 2237 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 39 }, "end": { - "line": 64, + "line": 65, "column": 49 } } } ], "range": [ - 2179, - 2209 + 2208, + 2238 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 20 }, "end": { - "line": 64, + "line": 65, "column": 50 } } }, "range": [ - 2179, - 2210 + 2208, + 2239 ], "loc": { "start": { - "line": 64, + "line": 65, "column": 20 }, "end": { - "line": 64, + "line": 65, "column": 51 } } @@ -4792,16 +4686,16 @@ "type": "Identifier", "name": "pn", "range": [ - 2231, - 2233 + 2260, + 2262 ], "loc": { "start": { - "line": 65, + "line": 66, "column": 20 }, "end": { - "line": 65, + "line": 66, "column": 22 } } @@ -4810,31 +4704,31 @@ "type": "Identifier", "name": "insertBefore", "range": [ - 2234, - 2246 + 2263, + 2275 ], "loc": { "start": { - "line": 65, + "line": 66, "column": 23 }, "end": { - "line": 65, + "line": 66, "column": 35 } } }, "range": [ - 2231, - 2246 + 2260, + 2275 ], "loc": { "start": { - "line": 65, + "line": 66, "column": 20 }, "end": { - "line": 65, + "line": 66, "column": 35 } } @@ -4844,16 +4738,16 @@ "type": "Identifier", "name": "before", "range": [ - 2247, - 2253 + 2276, + 2282 ], "loc": { "start": { - "line": 65, + "line": 66, "column": 36 }, "end": { - "line": 65, + "line": 66, "column": 42 } } @@ -4862,48 +4756,48 @@ "type": "Identifier", "name": "node", "range": [ - 2254, - 2258 + 2284, + 2288 ], "loc": { "start": { - "line": 65, - "column": 43 + "line": 66, + "column": 44 }, "end": { - "line": 65, - "column": 47 + "line": 66, + "column": 48 } } } ], "range": [ - 2231, - 2259 + 2260, + 2289 ], "loc": { "start": { - "line": 65, + "line": 66, "column": 20 }, "end": { - "line": 65, - "column": 48 + "line": 66, + "column": 49 } } }, "range": [ - 2231, - 2260 + 2260, + 2290 ], "loc": { "start": { - "line": 65, + "line": 66, "column": 20 }, "end": { - "line": 65, - "column": 49 + "line": 66, + "column": 50 } } }, @@ -4918,16 +4812,16 @@ "type": "Identifier", "name": "pn", "range": [ - 2281, - 2283 + 2311, + 2313 ], "loc": { "start": { - "line": 66, + "line": 67, "column": 20 }, "end": { - "line": 66, + "line": 67, "column": 22 } } @@ -4936,31 +4830,31 @@ "type": "Identifier", "name": "insertBefore", "range": [ - 2284, - 2296 + 2314, + 2326 ], "loc": { "start": { - "line": 66, + "line": 67, "column": 23 }, "end": { - "line": 66, + "line": 67, "column": 35 } } }, "range": [ - 2281, - 2296 + 2311, + 2326 ], "loc": { "start": { - "line": 66, + "line": 67, "column": 20 }, "end": { - "line": 66, + "line": 67, "column": 35 } } @@ -4970,16 +4864,16 @@ "type": "Identifier", "name": "hiword", "range": [ - 2297, - 2303 + 2327, + 2333 ], "loc": { "start": { - "line": 66, + "line": 67, "column": 36 }, "end": { - "line": 66, + "line": 67, "column": 42 } } @@ -4988,47 +4882,173 @@ "type": "Identifier", "name": "node", "range": [ - 2304, - 2308 + 2335, + 2339 ], "loc": { "start": { - "line": 66, + "line": 67, + "column": 44 + }, + "end": { + "line": 67, + "column": 48 + } + } + } + ], + "range": [ + 2311, + 2340 + ], + "loc": { + "start": { + "line": 67, + "column": 20 + }, + "end": { + "line": 67, + "column": 49 + } + } + }, + "range": [ + 2311, + 2341 + ], + "loc": { + "start": { + "line": 67, + "column": 20 + }, + "end": { + "line": 67, + "column": 50 + } + } + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "pn", + "range": [ + 2362, + 2364 + ], + "loc": { + "start": { + "line": 68, + "column": 20 + }, + "end": { + "line": 68, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "name": "insertBefore", + "range": [ + 2365, + 2377 + ], + "loc": { + "start": { + "line": 68, + "column": 23 + }, + "end": { + "line": 68, + "column": 35 + } + } + }, + "range": [ + 2362, + 2377 + ], + "loc": { + "start": { + "line": 68, + "column": 20 + }, + "end": { + "line": 68, + "column": 35 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "after", + "range": [ + 2378, + 2383 + ], + "loc": { + "start": { + "line": 68, + "column": 36 + }, + "end": { + "line": 68, + "column": 41 + } + } + }, + { + "type": "Identifier", + "name": "node", + "range": [ + 2385, + 2389 + ], + "loc": { + "start": { + "line": 68, "column": 43 }, "end": { - "line": 66, + "line": 68, "column": 47 } } } ], "range": [ - 2281, - 2309 + 2362, + 2390 ], "loc": { "start": { - "line": 66, + "line": 68, "column": 20 }, "end": { - "line": 66, + "line": 68, "column": 48 } } }, "range": [ - 2281, - 2310 + 2362, + 2391 ], "loc": { "start": { - "line": 66, + "line": 68, "column": 20 }, "end": { - "line": 66, + "line": 68, "column": 49 } } @@ -5044,142 +5064,16 @@ "type": "Identifier", "name": "pn", "range": [ - 2331, - 2333 + 2412, + 2414 ], "loc": { "start": { - "line": 67, + "line": 69, "column": 20 }, "end": { - "line": 67, - "column": 22 - } - } - }, - "property": { - "type": "Identifier", - "name": "insertBefore", - "range": [ - 2334, - 2346 - ], - "loc": { - "start": { - "line": 67, - "column": 23 - }, - "end": { - "line": 67, - "column": 35 - } - } - }, - "range": [ - 2331, - 2346 - ], - "loc": { - "start": { - "line": 67, - "column": 20 - }, - "end": { - "line": 67, - "column": 35 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "after", - "range": [ - 2347, - 2352 - ], - "loc": { - "start": { - "line": 67, - "column": 36 - }, - "end": { - "line": 67, - "column": 41 - } - } - }, - { - "type": "Identifier", - "name": "node", - "range": [ - 2353, - 2357 - ], - "loc": { - "start": { - "line": 67, - "column": 42 - }, - "end": { - "line": 67, - "column": 46 - } - } - } - ], - "range": [ - 2331, - 2358 - ], - "loc": { - "start": { - "line": 67, - "column": 20 - }, - "end": { - "line": 67, - "column": 47 - } - } - }, - "range": [ - 2331, - 2359 - ], - "loc": { - "start": { - "line": 67, - "column": 20 - }, - "end": { - "line": 67, - "column": 48 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "pn", - "range": [ - 2380, - 2382 - ], - "loc": { - "start": { - "line": 68, - "column": 20 - }, - "end": { - "line": 68, + "line": 69, "column": 22 } } @@ -5188,31 +5082,31 @@ "type": "Identifier", "name": "removeChild", "range": [ - 2383, - 2394 + 2415, + 2426 ], "loc": { "start": { - "line": 68, + "line": 69, "column": 23 }, "end": { - "line": 68, + "line": 69, "column": 34 } } }, "range": [ - 2380, - 2394 + 2412, + 2426 ], "loc": { "start": { - "line": 68, + "line": 69, "column": 20 }, "end": { - "line": 68, + "line": 69, "column": 34 } } @@ -5222,239 +5116,60 @@ "type": "Identifier", "name": "node", "range": [ - 2395, - 2399 + 2427, + 2431 ], "loc": { "start": { - "line": 68, + "line": 69, "column": 35 }, "end": { - "line": 68, + "line": 69, "column": 39 } } } ], "range": [ - 2380, - 2400 + 2412, + 2432 ], "loc": { "start": { - "line": 68, + "line": 69, "column": 20 }, "end": { - "line": 68, + "line": 69, "column": 40 } } }, "range": [ - 2380, - 2401 + 2412, + 2433 ], "loc": { "start": { - "line": 68, + "line": 69, "column": 20 }, "end": { - "line": 68, + "line": 69, "column": 41 } } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 2422, - 2426 - ], - "loc": { - "start": { - "line": 69, - "column": 20 - }, - "end": { - "line": 69, - "column": 24 - } - } - }, - "property": { - "type": "Identifier", - "name": "highlightedNodes", - "range": [ - 2427, - 2443 - ], - "loc": { - "start": { - "line": 69, - "column": 25 - }, - "end": { - "line": 69, - "column": 41 - } - } - }, - "range": [ - 2422, - 2443 - ], - "loc": { - "start": { - "line": 69, - "column": 20 - }, - "end": { - "line": 69, - "column": 41 - } - } - }, - "property": { - "type": "Identifier", - "name": "push", - "range": [ - 2444, - 2448 - ], - "loc": { - "start": { - "line": 69, - "column": 42 - }, - "end": { - "line": 69, - "column": 46 - } - } - }, - "range": [ - 2422, - 2448 - ], - "loc": { - "start": { - "line": 69, - "column": 20 - }, - "end": { - "line": 69, - "column": 46 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "hiword", - "range": [ - 2449, - 2455 - ], - "loc": { - "start": { - "line": 69, - "column": 47 - }, - "end": { - "line": 69, - "column": 53 - } - } - }, - "property": { - "type": "Identifier", - "name": "firstChild", - "range": [ - 2456, - 2466 - ], - "loc": { - "start": { - "line": 69, - "column": 54 - }, - "end": { - "line": 69, - "column": 64 - } - } - }, - "range": [ - 2449, - 2466 - ], - "loc": { - "start": { - "line": 69, - "column": 47 - }, - "end": { - "line": 69, - "column": 64 - } - } - } - ], - "range": [ - 2422, - 2467 - ], - "loc": { - "start": { - "line": 69, - "column": 20 - }, - "end": { - "line": 69, - "column": 65 - } - } - }, - "range": [ - 2422, - 2468 - ], - "loc": { - "start": { - "line": 69, - "column": 20 - }, - "end": { - "line": 69, - "column": 66 - } - } } ], "range": [ - 1584, - 2486 + 1610, + 2451 ], "loc": { "start": { - "line": 53, - "column": 50 + "line": 54, + "column": 53 }, "end": { "line": 70, @@ -5464,12 +5179,12 @@ }, "alternate": null, "range": [ - 1550, - 2486 + 1573, + 2451 ], "loc": { "start": { - "line": 53, + "line": 54, "column": 16 }, "end": { @@ -5480,13 +5195,13 @@ } ], "range": [ - 1490, - 2500 + 1513, + 2465 ], "loc": { "start": { - "line": 51, - "column": 54 + "line": 52, + "column": 57 }, "end": { "line": 71, @@ -5496,12 +5211,12 @@ }, "alternate": null, "range": [ - 1448, - 2500 + 1468, + 2465 ], "loc": { "start": { - "line": 51, + "line": 52, "column": 12 }, "end": { @@ -5512,13 +5227,13 @@ } ], "range": [ - 1330, - 2510 + 1350, + 2475 ], "loc": { "start": { - "line": 48, - "column": 31 + "line": 49, + "column": 33 }, "end": { "line": 72, @@ -5528,12 +5243,12 @@ }, "alternate": null, "range": [ - 1307, - 2510 + 1325, + 2475 ], "loc": { "start": { - "line": 48, + "line": 49, "column": 8 }, "end": { @@ -5544,13 +5259,13 @@ } ], "range": [ - 1039, - 2516 + 1049, + 2481 ], "loc": { "start": { - "line": 39, - "column": 35 + "line": 40, + "column": 36 }, "end": { "line": 73, @@ -5561,12 +5276,12 @@ "generator": false, "expression": false, "range": [ - 1017, - 2516 + 1026, + 2481 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 13 }, "end": { @@ -5578,12 +5293,12 @@ "kind": "method", "computed": false, "range": [ - 1008, - 2516 + 1017, + 2481 ], "loc": { "start": { - "line": 39, + "line": 40, "column": 4 }, "end": { @@ -5594,18 +5309,18 @@ "leadingComments": [ { "type": "Block", - "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n ", + "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n ", "range": [ - 810, - 1003 + 778, + 1012 ], "loc": { "start": { - "line": 33, + "line": 32, "column": 4 }, "end": { - "line": 38, + "line": 39, "column": 7 } } @@ -5616,8 +5331,8 @@ "type": "Block", "value": "*\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n ", "range": [ - 2522, - 2672 + 2487, + 2637 ], "loc": { "start": { @@ -5639,8 +5354,8 @@ "type": "Identifier", "name": "unhighlight", "range": [ - 2677, - 2688 + 2642, + 2653 ], "loc": { "start": { @@ -5661,8 +5376,8 @@ "type": "Identifier", "name": "word", "range": [ - 2689, - 2693 + 2654, + 2658 ], "loc": { "start": { @@ -5679,8 +5394,8 @@ "type": "Identifier", "name": "cssClass", "range": [ - 2695, - 2703 + 2660, + 2668 ], "loc": { "start": { @@ -5697,79 +5412,6 @@ "body": { "type": "BlockStatement", "body": [ - { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "arrRemove", - "range": [ - 2718, - 2727 - ], - "loc": { - "start": { - "line": 81, - "column": 12 - }, - "end": { - "line": 81, - "column": 21 - } - } - }, - "init": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 2730, - 2732 - ], - "loc": { - "start": { - "line": 81, - "column": 24 - }, - "end": { - "line": 81, - "column": 26 - } - } - }, - "range": [ - 2718, - 2732 - ], - "loc": { - "start": { - "line": 81, - "column": 12 - }, - "end": { - "line": 81, - "column": 26 - } - } - } - ], - "kind": "var", - "range": [ - 2714, - 2733 - ], - "loc": { - "start": { - "line": 81, - "column": 8 - }, - "end": { - "line": 81, - "column": 27 - } - } - }, { "type": "VariableDeclaration", "declarations": [ @@ -5779,102 +5421,276 @@ "type": "Identifier", "name": "highlightedNodes", "range": [ - 2746, - 2762 + 2684, + 2700 ], "loc": { "start": { - "line": 82, + "line": 81, "column": 12 }, "end": { - "line": 82, + "line": 81, "column": 28 } } }, "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2703, + 2707 + ], + "loc": { + "start": { + "line": 81, + "column": 31 + }, + "end": { + "line": 81, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "name": "tf", + "range": [ + 2708, + 2710 + ], + "loc": { + "start": { + "line": 81, + "column": 36 + }, + "end": { + "line": 81, + "column": 38 + } + } + }, + "range": [ + 2703, + 2710 + ], + "loc": { + "start": { + "line": 81, + "column": 31 + }, + "end": { + "line": 81, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "name": "tbl", + "range": [ + 2711, + 2714 + ], + "loc": { + "start": { + "line": 81, + "column": 39 + }, + "end": { + "line": 81, + "column": 42 + } + } + }, + "range": [ + 2703, + 2714 + ], + "loc": { + "start": { + "line": 81, + "column": 31 + }, + "end": { + "line": 81, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "name": "querySelectorAll", + "range": [ + 2715, + 2731 + ], + "loc": { + "start": { + "line": 81, + "column": 43 + }, + "end": { + "line": 81, + "column": 59 + } + } + }, "range": [ - 2765, - 2769 + 2703, + 2731 ], "loc": { "start": { - "line": 82, + "line": 81, "column": 31 }, "end": { - "line": 82, - "column": 35 + "line": 81, + "column": 59 } } }, - "property": { - "type": "Identifier", - "name": "highlightedNodes", - "range": [ - 2770, - 2786 - ], - "loc": { - "start": { - "line": 82, - "column": 36 - }, - "end": { - "line": 82, - "column": 52 + "arguments": [ + { + "type": "TemplateLiteral", + "quasis": [ + { + "type": "TemplateElement", + "value": { + "raw": ".", + "cooked": "." + }, + "tail": false, + "range": [ + 2732, + 2736 + ], + "loc": { + "start": { + "line": 81, + "column": 60 + }, + "end": { + "line": 81, + "column": 64 + } + } + }, + { + "type": "TemplateElement", + "value": { + "raw": "", + "cooked": "" + }, + "tail": true, + "range": [ + 2744, + 2746 + ], + "loc": { + "start": { + "line": 81, + "column": 72 + }, + "end": { + "line": 81, + "column": 74 + } + } + } + ], + "expressions": [ + { + "type": "Identifier", + "name": "cssClass", + "range": [ + 2736, + 2744 + ], + "loc": { + "start": { + "line": 81, + "column": 64 + }, + "end": { + "line": 81, + "column": 72 + } + } + } + ], + "range": [ + 2732, + 2746 + ], + "loc": { + "start": { + "line": 81, + "column": 60 + }, + "end": { + "line": 81, + "column": 74 + } } } - }, + ], "range": [ - 2765, - 2786 + 2703, + 2747 ], "loc": { "start": { - "line": 82, + "line": 81, "column": 31 }, "end": { - "line": 82, - "column": 52 + "line": 81, + "column": 75 } } }, "range": [ - 2746, - 2786 + 2684, + 2747 ], "loc": { "start": { - "line": 82, + "line": 81, "column": 12 }, "end": { - "line": 82, - "column": 52 + "line": 81, + "column": 75 } } } ], - "kind": "var", + "kind": "let", "range": [ - 2742, - 2787 + 2680, + 2748 ], "loc": { "start": { - "line": 82, + "line": 81, "column": 8 }, "end": { - "line": 82, - "column": 53 + "line": 81, + "column": 76 } } }, @@ -5889,17 +5705,17 @@ "type": "Identifier", "name": "i", "range": [ - 2804, - 2805 + 2766, + 2767 ], "loc": { "start": { - "line": 83, - "column": 16 + "line": 82, + "column": 17 }, "end": { - "line": 83, - "column": 17 + "line": 82, + "column": 18 } } }, @@ -5908,49 +5724,49 @@ "value": 0, "raw": "0", "range": [ - 2806, - 2807 + 2770, + 2771 ], "loc": { "start": { - "line": 83, - "column": 18 + "line": 82, + "column": 21 }, "end": { - "line": 83, - "column": 19 + "line": 82, + "column": 22 } } }, "range": [ - 2804, - 2807 + 2766, + 2771 ], "loc": { "start": { - "line": 83, - "column": 16 + "line": 82, + "column": 17 }, "end": { - "line": 83, - "column": 19 + "line": 82, + "column": 22 } } } ], - "kind": "var", + "kind": "let", "range": [ - 2800, - 2807 + 2762, + 2771 ], "loc": { "start": { - "line": 83, - "column": 12 + "line": 82, + "column": 13 }, "end": { - "line": 83, - "column": 19 + "line": 82, + "column": 22 } } }, @@ -5961,17 +5777,17 @@ "type": "Identifier", "name": "i", "range": [ - 2809, - 2810 + 2773, + 2774 ], "loc": { "start": { - "line": 83, - "column": 21 + "line": 82, + "column": 24 }, "end": { - "line": 83, - "column": 22 + "line": 82, + "column": 25 } } }, @@ -5982,17 +5798,17 @@ "type": "Identifier", "name": "highlightedNodes", "range": [ - 2811, - 2827 + 2777, + 2793 ], "loc": { "start": { - "line": 83, - "column": 23 + "line": 82, + "column": 28 }, "end": { - "line": 83, - "column": 39 + "line": 82, + "column": 44 } } }, @@ -6000,47 +5816,47 @@ "type": "Identifier", "name": "length", "range": [ - 2828, - 2834 + 2794, + 2800 ], "loc": { "start": { - "line": 83, - "column": 40 + "line": 82, + "column": 45 }, "end": { - "line": 83, - "column": 46 + "line": 82, + "column": 51 } } }, "range": [ - 2811, - 2834 + 2777, + 2800 ], "loc": { "start": { - "line": 83, - "column": 23 + "line": 82, + "column": 28 }, "end": { - "line": 83, - "column": 46 + "line": 82, + "column": 51 } } }, "range": [ - 2809, - 2834 + 2773, + 2800 ], "loc": { "start": { - "line": 83, - "column": 21 + "line": 82, + "column": 24 }, "end": { - "line": 83, - "column": 46 + "line": 82, + "column": 51 } } }, @@ -6051,33 +5867,33 @@ "type": "Identifier", "name": "i", "range": [ - 2836, - 2837 + 2802, + 2803 ], "loc": { "start": { - "line": 83, - "column": 48 + "line": 82, + "column": 53 }, "end": { - "line": 83, - "column": 49 + "line": 82, + "column": 54 } } }, "prefix": false, "range": [ - 2836, - 2839 + 2802, + 2805 ], "loc": { "start": { - "line": 83, - "column": 48 + "line": 82, + "column": 53 }, "end": { - "line": 83, - "column": 51 + "line": 82, + "column": 56 } } }, @@ -6093,16 +5909,16 @@ "type": "Identifier", "name": "n", "range": [ - 2858, - 2859 + 2825, + 2826 ], "loc": { "start": { - "line": 84, + "line": 83, "column": 16 }, "end": { - "line": 84, + "line": 83, "column": 17 } } @@ -6114,16 +5930,16 @@ "type": "Identifier", "name": "highlightedNodes", "range": [ - 2862, - 2878 + 2829, + 2845 ], "loc": { "start": { - "line": 84, + "line": 83, "column": 20 }, "end": { - "line": 84, + "line": 83, "column": 36 } } @@ -6132,159 +5948,67 @@ "type": "Identifier", "name": "i", "range": [ - 2879, - 2880 + 2846, + 2847 ], "loc": { "start": { - "line": 84, + "line": 83, "column": 37 }, "end": { - "line": 84, + "line": 83, "column": 38 } } }, "range": [ - 2862, - 2881 + 2829, + 2848 ], "loc": { "start": { - "line": 84, + "line": 83, "column": 20 }, "end": { - "line": 84, + "line": 83, "column": 39 } } }, "range": [ - 2858, - 2881 + 2825, + 2848 ], "loc": { "start": { - "line": 84, + "line": 83, "column": 16 }, "end": { - "line": 84, + "line": 83, "column": 39 } } } ], - "kind": "var", + "kind": "let", "range": [ - 2854, - 2882 + 2821, + 2849 ], "loc": { "start": { - "line": 84, + "line": 83, "column": 12 }, "end": { - "line": 84, + "line": 83, "column": 40 } } }, - { - "type": "IfStatement", - "test": { - "type": "UnaryExpression", - "operator": "!", - "argument": { - "type": "Identifier", - "name": "n", - "range": [ - 2899, - 2900 - ], - "loc": { - "start": { - "line": 85, - "column": 16 - }, - "end": { - "line": 85, - "column": 17 - } - } - }, - "prefix": true, - "range": [ - 2898, - 2900 - ], - "loc": { - "start": { - "line": 85, - "column": 15 - }, - "end": { - "line": 85, - "column": 17 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ContinueStatement", - "label": null, - "range": [ - 2919, - 2928 - ], - "loc": { - "start": { - "line": 86, - "column": 16 - }, - "end": { - "line": 86, - "column": 25 - } - } - } - ], - "range": [ - 2901, - 2942 - ], - "loc": { - "start": { - "line": 85, - "column": 18 - }, - "end": { - "line": 87, - "column": 13 - } - } - }, - "alternate": null, - "range": [ - 2895, - 2942 - ], - "loc": { - "start": { - "line": 85, - "column": 12 - }, - "end": { - "line": 87, - "column": 13 - } - } - }, { "type": "VariableDeclaration", "declarations": [ @@ -6292,18 +6016,144 @@ "type": "VariableDeclarator", "id": { "type": "Identifier", - "name": "tempNodeVal", + "name": "nodeVal", "range": [ - 2959, - 2970 + 2866, + 2873 ], "loc": { "start": { - "line": 88, + "line": 84, "column": 16 }, "end": { - "line": 88, + "line": 84, + "column": 23 + } + } + }, + "init": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Dom", + "range": [ + 2876, + 2879 + ], + "loc": { + "start": { + "line": 84, + "column": 26 + }, + "end": { + "line": 84, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "name": "getText", + "range": [ + 2880, + 2887 + ], + "loc": { + "start": { + "line": 84, + "column": 30 + }, + "end": { + "line": 84, + "column": 37 + } + } + }, + "range": [ + 2876, + 2887 + ], + "loc": { + "start": { + "line": 84, + "column": 26 + }, + "end": { + "line": 84, + "column": 37 + } + } + }, + "arguments": [ + { + "type": "Identifier", + "name": "n", + "range": [ + 2888, + 2889 + ], + "loc": { + "start": { + "line": 84, + "column": 38 + }, + "end": { + "line": 84, + "column": 39 + } + } + } + ], + "range": [ + 2876, + 2890 + ], + "loc": { + "start": { + "line": 84, + "column": 26 + }, + "end": { + "line": 84, + "column": 40 + } + } + }, + "range": [ + 2866, + 2890 + ], + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 84, + "column": 40 + } + } + }, + { + "type": "VariableDeclarator", + "id": { + "type": "Identifier", + "name": "tempNodeVal", + "range": [ + 2908, + 2919 + ], + "loc": { + "start": { + "line": 85, + "column": 16 + }, + "end": { + "line": 85, "column": 27 } } @@ -6317,16 +6167,16 @@ "type": "Identifier", "name": "Str", "range": [ - 2973, - 2976 + 2922, + 2925 ], "loc": { "start": { - "line": 88, + "line": 85, "column": 30 }, "end": { - "line": 88, + "line": 85, "column": 33 } } @@ -6335,118 +6185,82 @@ "type": "Identifier", "name": "lower", "range": [ - 2977, - 2982 + 2926, + 2931 ], "loc": { "start": { - "line": 88, + "line": 85, "column": 34 }, "end": { - "line": 88, + "line": 85, "column": 39 } } }, "range": [ - 2973, - 2982 + 2922, + 2931 ], "loc": { "start": { - "line": 88, + "line": 85, "column": 30 }, "end": { - "line": 88, + "line": 85, "column": 39 } } }, "arguments": [ { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "n", - "range": [ - 2983, - 2984 - ], - "loc": { - "start": { - "line": 88, - "column": 40 - }, - "end": { - "line": 88, - "column": 41 - } - } - }, - "property": { - "type": "Identifier", - "name": "nodeValue", - "range": [ - 2985, - 2994 - ], - "loc": { - "start": { - "line": 88, - "column": 42 - }, - "end": { - "line": 88, - "column": 51 - } - } - }, + "type": "Identifier", + "name": "nodeVal", "range": [ - 2983, - 2994 + 2932, + 2939 ], "loc": { "start": { - "line": 88, + "line": 85, "column": 40 }, "end": { - "line": 88, - "column": 51 + "line": 85, + "column": 47 } } } ], "range": [ - 2973, - 2995 + 2922, + 2940 ], "loc": { "start": { - "line": 88, + "line": 85, "column": 30 }, "end": { - "line": 88, - "column": 52 + "line": 85, + "column": 48 } } }, "range": [ - 2959, - 2995 + 2908, + 2940 ], "loc": { "start": { - "line": 88, + "line": 85, "column": 16 }, "end": { - "line": 88, - "column": 52 + "line": 85, + "column": 48 } } }, @@ -6456,16 +6270,16 @@ "type": "Identifier", "name": "tempWordVal", "range": [ - 3013, - 3024 + 2958, + 2969 ], "loc": { "start": { - "line": 89, + "line": 86, "column": 16 }, "end": { - "line": 89, + "line": 86, "column": 27 } } @@ -6479,16 +6293,16 @@ "type": "Identifier", "name": "Str", "range": [ - 3027, - 3030 + 2972, + 2975 ], "loc": { "start": { - "line": 89, + "line": 86, "column": 30 }, "end": { - "line": 89, + "line": 86, "column": 33 } } @@ -6497,31 +6311,31 @@ "type": "Identifier", "name": "lower", "range": [ - 3031, - 3036 + 2976, + 2981 ], "loc": { "start": { - "line": 89, + "line": 86, "column": 34 }, "end": { - "line": 89, + "line": 86, "column": 39 } } }, "range": [ - 3027, - 3036 + 2972, + 2981 ], "loc": { "start": { - "line": 89, + "line": 86, "column": 30 }, "end": { - "line": 89, + "line": 86, "column": 39 } } @@ -6531,64 +6345,64 @@ "type": "Identifier", "name": "word", "range": [ - 3037, - 3041 + 2982, + 2986 ], "loc": { "start": { - "line": 89, + "line": 86, "column": 40 }, "end": { - "line": 89, + "line": 86, "column": 44 } } } ], "range": [ - 3027, - 3042 + 2972, + 2987 ], "loc": { "start": { - "line": 89, + "line": 86, "column": 30 }, "end": { - "line": 89, + "line": 86, "column": 45 } } }, "range": [ - 3013, - 3042 + 2958, + 2987 ], "loc": { "start": { - "line": 89, + "line": 86, "column": 16 }, "end": { - "line": 89, + "line": 86, "column": 45 } } } ], - "kind": "var", + "kind": "let", "range": [ - 2955, - 3043 + 2862, + 2988 ], "loc": { "start": { - "line": 88, + "line": 84, "column": 12 }, "end": { - "line": 89, + "line": 86, "column": 46 } } @@ -6607,17 +6421,17 @@ "type": "Identifier", "name": "tempNodeVal", "range": [ - 3059, - 3070 + 3006, + 3017 ], "loc": { "start": { - "line": 90, - "column": 15 + "line": 88, + "column": 16 }, "end": { - "line": 90, - "column": 26 + "line": 88, + "column": 27 } } }, @@ -6625,32 +6439,32 @@ "type": "Identifier", "name": "indexOf", "range": [ - 3071, - 3078 + 3018, + 3025 ], "loc": { "start": { - "line": 90, - "column": 27 + "line": 88, + "column": 28 }, "end": { - "line": 90, - "column": 34 + "line": 88, + "column": 35 } } }, "range": [ - 3059, - 3078 + 3006, + 3025 ], "loc": { "start": { - "line": 90, - "column": 15 + "line": 88, + "column": 16 }, "end": { - "line": 90, - "column": 34 + "line": 88, + "column": 35 } } }, @@ -6659,33 +6473,33 @@ "type": "Identifier", "name": "tempWordVal", "range": [ - 3079, - 3090 + 3026, + 3037 ], "loc": { "start": { - "line": 90, - "column": 35 + "line": 88, + "column": 36 }, "end": { - "line": 90, - "column": 46 + "line": 88, + "column": 47 } } } ], "range": [ - 3059, - 3091 + 3006, + 3038 ], "loc": { "start": { - "line": 90, - "column": 15 + "line": 88, + "column": 16 }, "end": { - "line": 90, - "column": 47 + "line": 88, + "column": 48 } } }, @@ -6697,48 +6511,48 @@ "value": 1, "raw": "1", "range": [ - 3097, - 3098 + 3044, + 3045 ], "loc": { "start": { - "line": 90, - "column": 53 + "line": 88, + "column": 54 }, "end": { - "line": 90, - "column": 54 + "line": 88, + "column": 55 } } }, "prefix": true, "range": [ - 3096, - 3098 + 3043, + 3045 ], "loc": { "start": { - "line": 90, - "column": 52 + "line": 88, + "column": 53 }, "end": { - "line": 90, - "column": 54 + "line": 88, + "column": 55 } } }, "range": [ - 3059, - 3098 + 3006, + 3045 ], "loc": { "start": { - "line": 90, - "column": 15 + "line": 88, + "column": 16 }, "end": { - "line": 90, - "column": 54 + "line": 88, + "column": 55 } } }, @@ -6746,46 +6560,30 @@ "type": "BlockStatement", "body": [ { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "pn", - "range": [ - 3121, - 3123 - ], - "loc": { - "start": { - "line": 91, - "column": 20 - }, - "end": { - "line": 91, - "column": 22 - } - } - }, - "init": { + "type": "ExpressionStatement", + "expression": { + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "n", "range": [ - 3126, - 3127 + 3065, + 3066 ], "loc": { "start": { - "line": 91, - "column": 25 + "line": 89, + "column": 16 }, "end": { - "line": 91, - "column": 26 + "line": 89, + "column": 17 } } }, @@ -6793,1661 +6591,284 @@ "type": "Identifier", "name": "parentNode", "range": [ - 3128, - 3138 + 3067, + 3077 ], "loc": { "start": { - "line": 91, - "column": 27 + "line": 89, + "column": 18 }, "end": { - "line": 91, - "column": 37 - } - } - }, - "range": [ - 3126, - 3138 - ], - "loc": { - "start": { - "line": 91, - "column": 25 - }, - "end": { - "line": 91, - "column": 37 - } - } - }, - "range": [ - 3121, - 3138 - ], - "loc": { - "start": { - "line": 91, - "column": 20 - }, - "end": { - "line": 91, - "column": 37 - } - } - } - ], - "kind": "var", - "range": [ - 3117, - 3139 - ], - "loc": { - "start": { - "line": 91, - "column": 16 - }, - "end": { - "line": 91, - "column": 38 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "&&", - "left": { - "type": "Identifier", - "name": "pn", - "range": [ - 3159, - 3161 - ], - "loc": { - "start": { - "line": 92, - "column": 19 - }, - "end": { - "line": 92, - "column": 21 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "===", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "pn", - "range": [ - 3165, - 3167 - ], - "loc": { - "start": { - "line": 92, - "column": 25 - }, - "end": { - "line": 92, - "column": 27 - } - } - }, - "property": { - "type": "Identifier", - "name": "className", - "range": [ - 3168, - 3177 - ], - "loc": { - "start": { - "line": 92, + "line": 89, "column": 28 - }, - "end": { - "line": 92, - "column": 37 } } }, "range": [ - 3165, - 3177 + 3065, + 3077 ], "loc": { "start": { - "line": 92, - "column": 25 + "line": 89, + "column": 16 }, "end": { - "line": 92, - "column": 37 + "line": 89, + "column": 28 } } }, - "right": { + "property": { "type": "Identifier", - "name": "cssClass", + "name": "replaceChild", "range": [ - 3182, - 3190 + 3078, + 3090 ], "loc": { "start": { - "line": 92, - "column": 42 + "line": 89, + "column": 29 }, "end": { - "line": 92, - "column": 50 + "line": 89, + "column": 41 } } }, "range": [ - 3165, - 3190 + 3065, + 3090 ], "loc": { "start": { - "line": 92, - "column": 25 + "line": 89, + "column": 16 }, "end": { - "line": 92, - "column": 50 + "line": 89, + "column": 41 } } }, - "range": [ - 3159, - 3190 - ], - "loc": { - "start": { - "line": 92, - "column": 19 - }, - "end": { - "line": 92, - "column": 50 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ + "arguments": [ { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "prevSib", - "range": [ - 3217, - 3224 - ], - "loc": { - "start": { - "line": 93, - "column": 24 - }, - "end": { - "line": 93, - "column": 31 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "pn", - "range": [ - 3227, - 3229 - ], - "loc": { - "start": { - "line": 93, - "column": 34 - }, - "end": { - "line": 93, - "column": 36 - } - } - }, - "property": { - "type": "Identifier", - "name": "previousSibling", - "range": [ - 3230, - 3245 - ], - "loc": { - "start": { - "line": 93, - "column": 37 - }, - "end": { - "line": 93, - "column": 52 - } - } - }, - "range": [ - 3227, - 3245 - ], - "loc": { - "start": { - "line": 93, - "column": 34 - }, - "end": { - "line": 93, - "column": 52 - } - } - }, + "type": "CallExpression", + "callee": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "Identifier", + "name": "Dom", "range": [ - 3217, - 3245 + 3091, + 3094 ], "loc": { "start": { - "line": 93, - "column": 24 - }, - "end": { - "line": 93, - "column": 52 - } - } - }, - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "nextSib", - "range": [ - 3271, - 3278 - ], - "loc": { - "start": { - "line": 94, - "column": 24 - }, - "end": { - "line": 94, - "column": 31 - } - } - }, - "init": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "pn", - "range": [ - 3281, - 3283 - ], - "loc": { - "start": { - "line": 94, - "column": 34 - }, - "end": { - "line": 94, - "column": 36 - } - } - }, - "property": { - "type": "Identifier", - "name": "nextSibling", - "range": [ - 3284, - 3295 - ], - "loc": { - "start": { - "line": 94, - "column": 37 - }, - "end": { - "line": 94, - "column": 48 - } - } - }, - "range": [ - 3281, - 3295 - ], - "loc": { - "start": { - "line": 94, - "column": 34 - }, - "end": { - "line": 94, - "column": 48 - } - } - }, - "range": [ - 3271, - 3295 - ], - "loc": { - "start": { - "line": 94, - "column": 24 - }, - "end": { - "line": 94, - "column": 48 - } - } - } - ], - "kind": "var", - "range": [ - 3213, - 3296 - ], - "loc": { - "start": { - "line": 93, - "column": 20 - }, - "end": { - "line": 94, - "column": 49 - } - } - }, - { - "type": "IfStatement", - "test": { - "type": "LogicalExpression", - "operator": "||", - "left": { - "type": "UnaryExpression", - "operator": "!", - "argument": { - "type": "Identifier", - "name": "prevSib", - "range": [ - 3321, - 3328 - ], - "loc": { - "start": { - "line": 95, - "column": 24 - }, - "end": { - "line": 95, - "column": 31 - } - } - }, - "prefix": true, - "range": [ - 3320, - 3328 - ], - "loc": { - "start": { - "line": 95, - "column": 23 - }, - "end": { - "line": 95, - "column": 31 - } - } - }, - "right": { - "type": "UnaryExpression", - "operator": "!", - "argument": { - "type": "Identifier", - "name": "nextSib", - "range": [ - 3333, - 3340 - ], - "loc": { - "start": { - "line": 95, - "column": 36 - }, - "end": { - "line": 95, - "column": 43 - } - } - }, - "prefix": true, - "range": [ - 3332, - 3340 - ], - "loc": { - "start": { - "line": 95, - "column": 35 - }, - "end": { - "line": 95, - "column": 43 - } - } - }, - "range": [ - 3320, - 3340 - ], - "loc": { - "start": { - "line": 95, - "column": 23 - }, - "end": { - "line": 95, - "column": 43 - } - } - }, - "consequent": { - "type": "BlockStatement", - "body": [ - { - "type": "ContinueStatement", - "label": null, - "range": [ - 3343, - 3352 - ], - "loc": { - "start": { - "line": 95, - "column": 46 - }, - "end": { - "line": 95, - "column": 55 - } - } - } - ], - "range": [ - 3341, - 3354 - ], - "loc": { - "start": { - "line": 95, - "column": 44 - }, - "end": { - "line": 95, - "column": 57 - } - } - }, - "alternate": null, - "range": [ - 3317, - 3354 - ], - "loc": { - "start": { - "line": 95, - "column": 20 - }, - "end": { - "line": 95, - "column": 57 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "nextSib", - "range": [ - 3375, - 3382 - ], - "loc": { - "start": { - "line": 96, - "column": 20 - }, - "end": { - "line": 96, - "column": 27 - } - } - }, - "property": { - "type": "Identifier", - "name": "nodeValue", - "range": [ - 3383, - 3392 - ], - "loc": { - "start": { - "line": 96, - "column": 28 - }, - "end": { - "line": 96, - "column": 37 - } - } - }, - "range": [ - 3375, - 3392 - ], - "loc": { - "start": { - "line": 96, - "column": 20 - }, - "end": { - "line": 96, - "column": 37 - } - } - }, - "right": { - "type": "BinaryExpression", - "operator": "+", - "left": { - "type": "BinaryExpression", - "operator": "+", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "prevSib", - "range": [ - 3395, - 3402 - ], - "loc": { - "start": { - "line": 96, - "column": 40 - }, - "end": { - "line": 96, - "column": 47 - } - } - }, - "property": { - "type": "Identifier", - "name": "nodeValue", - "range": [ - 3403, - 3412 - ], - "loc": { - "start": { - "line": 96, - "column": 48 - }, - "end": { - "line": 96, - "column": 57 - } - } - }, - "range": [ - 3395, - 3412 - ], - "loc": { - "start": { - "line": 96, - "column": 40 - }, - "end": { - "line": 96, - "column": 57 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "n", - "range": [ - 3415, - 3416 - ], - "loc": { - "start": { - "line": 96, - "column": 60 - }, - "end": { - "line": 96, - "column": 61 - } - } - }, - "property": { - "type": "Identifier", - "name": "nodeValue", - "range": [ - 3417, - 3426 - ], - "loc": { - "start": { - "line": 96, - "column": 62 - }, - "end": { - "line": 96, - "column": 71 - } - } - }, - "range": [ - 3415, - 3426 - ], - "loc": { - "start": { - "line": 96, - "column": 60 - }, - "end": { - "line": 96, - "column": 71 - } - } - }, - "range": [ - 3395, - 3426 - ], - "loc": { - "start": { - "line": 96, - "column": 40 - }, - "end": { - "line": 96, - "column": 71 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "nextSib", - "range": [ - 3453, - 3460 - ], - "loc": { - "start": { - "line": 97, - "column": 24 - }, - "end": { - "line": 97, - "column": 31 - } - } - }, - "property": { - "type": "Identifier", - "name": "nodeValue", - "range": [ - 3461, - 3470 - ], - "loc": { - "start": { - "line": 97, - "column": 32 - }, - "end": { - "line": 97, - "column": 41 - } - } - }, - "range": [ - 3453, - 3470 - ], - "loc": { - "start": { - "line": 97, - "column": 24 - }, - "end": { - "line": 97, - "column": 41 - } - } - }, - "range": [ - 3395, - 3470 - ], - "loc": { - "start": { - "line": 96, - "column": 40 - }, - "end": { - "line": 97, - "column": 41 - } - } - }, - "range": [ - 3375, - 3470 - ], - "loc": { - "start": { - "line": 96, - "column": 20 - }, - "end": { - "line": 97, - "column": 41 - } - } - }, - "range": [ - 3375, - 3471 - ], - "loc": { - "start": { - "line": 96, - "column": 20 - }, - "end": { - "line": 97, - "column": 42 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "prevSib", - "range": [ - 3492, - 3499 - ], - "loc": { - "start": { - "line": 98, - "column": 20 - }, - "end": { - "line": 98, - "column": 27 - } - } - }, - "property": { - "type": "Identifier", - "name": "nodeValue", - "range": [ - 3500, - 3509 - ], - "loc": { - "start": { - "line": 98, - "column": 28 - }, - "end": { - "line": 98, - "column": 37 - } - } - }, - "range": [ - 3492, - 3509 - ], - "loc": { - "start": { - "line": 98, - "column": 20 - }, - "end": { - "line": 98, - "column": 37 - } - } - }, - "right": { - "type": "Literal", - "value": "", - "raw": "''", - "range": [ - 3512, - 3514 - ], - "loc": { - "start": { - "line": 98, - "column": 40 - }, - "end": { - "line": 98, + "line": 89, "column": 42 + }, + "end": { + "line": 89, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "name": "text", + "range": [ + 3095, + 3099 + ], + "loc": { + "start": { + "line": 89, + "column": 46 + }, + "end": { + "line": 89, + "column": 50 } } }, "range": [ - 3492, - 3514 + 3091, + 3099 ], "loc": { "start": { - "line": 98, - "column": 20 - }, - "end": { - "line": 98, + "line": 89, "column": 42 + }, + "end": { + "line": 89, + "column": 50 } } }, + "arguments": [ + { + "type": "Identifier", + "name": "nodeVal", + "range": [ + 3100, + 3107 + ], + "loc": { + "start": { + "line": 89, + "column": 51 + }, + "end": { + "line": 89, + "column": 58 + } + } + } + ], "range": [ - 3492, - 3515 + 3091, + 3108 ], "loc": { "start": { - "line": 98, - "column": 20 + "line": 89, + "column": 42 }, "end": { - "line": 98, - "column": 43 + "line": 89, + "column": 59 } } }, { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "n", - "range": [ - 3536, - 3537 - ], - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 21 - } - } - }, - "property": { - "type": "Identifier", - "name": "nodeValue", - "range": [ - 3538, - 3547 - ], - "loc": { - "start": { - "line": 99, - "column": 22 - }, - "end": { - "line": 99, - "column": 31 - } - } - }, - "range": [ - 3536, - 3547 - ], - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 31 - } - } - }, - "right": { - "type": "Literal", - "value": "", - "raw": "''", - "range": [ - 3550, - 3552 - ], - "loc": { - "start": { - "line": 99, - "column": 34 - }, - "end": { - "line": 99, - "column": 36 - } - } - }, - "range": [ - 3536, - 3552 - ], - "loc": { - "start": { - "line": 99, - "column": 20 - }, - "end": { - "line": 99, - "column": 36 - } - } - }, + "type": "Identifier", + "name": "n", "range": [ - 3536, - 3553 + 3110, + 3111 ], "loc": { "start": { - "line": 99, - "column": 20 + "line": 89, + "column": 61 }, "end": { - "line": 99, - "column": 37 - } - } - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "arrRemove", - "range": [ - 3574, - 3583 - ], - "loc": { - "start": { - "line": 100, - "column": 20 - }, - "end": { - "line": 100, - "column": 29 - } - } - }, - "property": { - "type": "Identifier", - "name": "push", - "range": [ - 3584, - 3588 - ], - "loc": { - "start": { - "line": 100, - "column": 30 - }, - "end": { - "line": 100, - "column": 34 - } - } - }, - "range": [ - 3574, - 3588 - ], - "loc": { - "start": { - "line": 100, - "column": 20 - }, - "end": { - "line": 100, - "column": 34 - } - } - }, - "arguments": [ - { - "type": "Identifier", - "name": "i", - "range": [ - 3589, - 3590 - ], - "loc": { - "start": { - "line": 100, - "column": 35 - }, - "end": { - "line": 100, - "column": 36 - } - } - } - ], - "range": [ - 3574, - 3591 - ], - "loc": { - "start": { - "line": 100, - "column": 20 - }, - "end": { - "line": 100, - "column": 37 - } - } - }, - "range": [ - 3574, - 3592 - ], - "loc": { - "start": { - "line": 100, - "column": 20 - }, - "end": { - "line": 100, - "column": 38 + "line": 89, + "column": 62 } } } ], "range": [ - 3191, - 3610 + 3065, + 3112 ], "loc": { "start": { - "line": 92, - "column": 51 + "line": 89, + "column": 16 }, "end": { - "line": 101, - "column": 17 + "line": 89, + "column": 63 } } }, - "alternate": null, "range": [ - 3156, - 3610 + 3065, + 3113 ], "loc": { "start": { - "line": 92, + "line": 89, "column": 16 }, "end": { - "line": 101, - "column": 17 + "line": 89, + "column": 64 } } } ], "range": [ - 3099, - 3624 + 3047, + 3127 ], "loc": { "start": { - "line": 90, - "column": 55 + "line": 88, + "column": 57 }, "end": { - "line": 102, + "line": 90, "column": 13 } } }, "alternate": null, "range": [ - 3056, - 3624 + 3002, + 3127 ], "loc": { "start": { - "line": 90, + "line": 88, "column": 12 }, "end": { - "line": 102, + "line": 90, "column": 13 } } } ], "range": [ - 2840, - 3634 + 2807, + 3137 ], "loc": { "start": { - "line": 83, - "column": 52 + "line": 82, + "column": 58 }, "end": { - "line": 103, + "line": 91, "column": 9 } } }, "range": [ - 2796, - 3634 + 2757, + 3137 ], "loc": { "start": { - "line": 83, + "line": 82, "column": 8 }, "end": { - "line": 103, - "column": 9 - } - } - }, - { - "type": "ForStatement", - "init": { - "type": "VariableDeclaration", - "declarations": [ - { - "type": "VariableDeclarator", - "id": { - "type": "Identifier", - "name": "k", - "range": [ - 3651, - 3652 - ], - "loc": { - "start": { - "line": 104, - "column": 16 - }, - "end": { - "line": 104, - "column": 17 - } - } - }, - "init": { - "type": "Literal", - "value": 0, - "raw": "0", - "range": [ - 3653, - 3654 - ], - "loc": { - "start": { - "line": 104, - "column": 18 - }, - "end": { - "line": 104, - "column": 19 - } - } - }, - "range": [ - 3651, - 3654 - ], - "loc": { - "start": { - "line": 104, - "column": 16 - }, - "end": { - "line": 104, - "column": 19 - } - } - } - ], - "kind": "var", - "range": [ - 3647, - 3654 - ], - "loc": { - "start": { - "line": 104, - "column": 12 - }, - "end": { - "line": 104, - "column": 19 - } - } - }, - "test": { - "type": "BinaryExpression", - "operator": "<", - "left": { - "type": "Identifier", - "name": "k", - "range": [ - 3656, - 3657 - ], - "loc": { - "start": { - "line": 104, - "column": 21 - }, - "end": { - "line": 104, - "column": 22 - } - } - }, - "right": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "arrRemove", - "range": [ - 3658, - 3667 - ], - "loc": { - "start": { - "line": 104, - "column": 23 - }, - "end": { - "line": 104, - "column": 32 - } - } - }, - "property": { - "type": "Identifier", - "name": "length", - "range": [ - 3668, - 3674 - ], - "loc": { - "start": { - "line": 104, - "column": 33 - }, - "end": { - "line": 104, - "column": 39 - } - } - }, - "range": [ - 3658, - 3674 - ], - "loc": { - "start": { - "line": 104, - "column": 23 - }, - "end": { - "line": 104, - "column": 39 - } - } - }, - "range": [ - 3656, - 3674 - ], - "loc": { - "start": { - "line": 104, - "column": 21 - }, - "end": { - "line": 104, - "column": 39 - } - } - }, - "update": { - "type": "UpdateExpression", - "operator": "++", - "argument": { - "type": "Identifier", - "name": "k", - "range": [ - 3676, - 3677 - ], - "loc": { - "start": { - "line": 104, - "column": 41 - }, - "end": { - "line": 104, - "column": 42 - } - } - }, - "prefix": false, - "range": [ - 3676, - 3679 - ], - "loc": { - "start": { - "line": 104, - "column": 41 - }, - "end": { - "line": 104, - "column": 44 - } - } - }, - "body": { - "type": "BlockStatement", - "body": [ - { - "type": "ExpressionStatement", - "expression": { - "type": "CallExpression", - "callee": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "Identifier", - "name": "highlightedNodes", - "range": [ - 3694, - 3710 - ], - "loc": { - "start": { - "line": 105, - "column": 12 - }, - "end": { - "line": 105, - "column": 28 - } - } - }, - "property": { - "type": "Identifier", - "name": "splice", - "range": [ - 3711, - 3717 - ], - "loc": { - "start": { - "line": 105, - "column": 29 - }, - "end": { - "line": 105, - "column": 35 - } - } - }, - "range": [ - 3694, - 3717 - ], - "loc": { - "start": { - "line": 105, - "column": 12 - }, - "end": { - "line": 105, - "column": 35 - } - } - }, - "arguments": [ - { - "type": "MemberExpression", - "computed": true, - "object": { - "type": "Identifier", - "name": "arrRemove", - "range": [ - 3718, - 3727 - ], - "loc": { - "start": { - "line": 105, - "column": 36 - }, - "end": { - "line": 105, - "column": 45 - } - } - }, - "property": { - "type": "Identifier", - "name": "k", - "range": [ - 3728, - 3729 - ], - "loc": { - "start": { - "line": 105, - "column": 46 - }, - "end": { - "line": 105, - "column": 47 - } - } - }, - "range": [ - 3718, - 3730 - ], - "loc": { - "start": { - "line": 105, - "column": 36 - }, - "end": { - "line": 105, - "column": 48 - } - } - }, - { - "type": "Literal", - "value": 1, - "raw": "1", - "range": [ - 3732, - 3733 - ], - "loc": { - "start": { - "line": 105, - "column": 50 - }, - "end": { - "line": 105, - "column": 51 - } - } - } - ], - "range": [ - 3694, - 3734 - ], - "loc": { - "start": { - "line": 105, - "column": 12 - }, - "end": { - "line": 105, - "column": 52 - } - } - }, - "range": [ - 3694, - 3735 - ], - "loc": { - "start": { - "line": 105, - "column": 12 - }, - "end": { - "line": 105, - "column": 53 - } - } - } - ], - "range": [ - 3680, - 3745 - ], - "loc": { - "start": { - "line": 104, - "column": 45 - }, - "end": { - "line": 106, - "column": 9 - } - } - }, - "range": [ - 3643, - 3745 - ], - "loc": { - "start": { - "line": 104, - "column": 8 - }, - "end": { - "line": 106, + "line": 91, "column": 9 } } } ], "range": [ - 2704, - 3751 + 2670, + 3143 ], "loc": { "start": { "line": 80, - "column": 31 + "column": 32 }, "end": { - "line": 107, + "line": 92, "column": 5 } } @@ -8455,8 +6876,8 @@ "generator": false, "expression": false, "range": [ - 2688, - 3751 + 2653, + 3143 ], "loc": { "start": { @@ -8464,7 +6885,7 @@ "column": 15 }, "end": { - "line": 107, + "line": 92, "column": 5 } } @@ -8472,8 +6893,8 @@ "kind": "method", "computed": false, "range": [ - 2677, - 3751 + 2642, + 3143 ], "loc": { "start": { @@ -8481,7 +6902,7 @@ "column": 4 }, "end": { - "line": 107, + "line": 92, "column": 5 } }, @@ -8490,8 +6911,8 @@ "type": "Block", "value": "*\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n ", "range": [ - 2522, - 2672 + 2487, + 2637 ], "loc": { "start": { @@ -8510,16 +6931,16 @@ "type": "Block", "value": "*\n * Clear all occurrences of highlighted nodes\n ", "range": [ - 3757, - 3818 + 3149, + 3210 ], "loc": { "start": { - "line": 109, + "line": 94, "column": 4 }, "end": { - "line": 111, + "line": 96, "column": 7 } } @@ -8533,16 +6954,16 @@ "type": "Identifier", "name": "unhighlightAll", "range": [ - 3823, - 3837 + 3215, + 3229 ], "loc": { "start": { - "line": 112, + "line": 97, "column": 4 }, "end": { - "line": 112, + "line": 97, "column": 18 } } @@ -8568,17 +6989,17 @@ "object": { "type": "ThisExpression", "range": [ - 3853, - 3857 + 3247, + 3251 ], "loc": { "start": { - "line": 113, - "column": 12 + "line": 98, + "column": 13 }, "end": { - "line": 113, - "column": 16 + "line": 98, + "column": 17 } } }, @@ -8586,32 +7007,32 @@ "type": "Identifier", "name": "tf", "range": [ - 3858, - 3860 + 3252, + 3254 ], "loc": { "start": { - "line": 113, - "column": 17 + "line": 98, + "column": 18 }, "end": { - "line": 113, - "column": 19 + "line": 98, + "column": 20 } } }, "range": [ - 3853, - 3860 + 3247, + 3254 ], "loc": { "start": { - "line": 113, - "column": 12 + "line": 98, + "column": 13 }, "end": { - "line": 113, - "column": 19 + "line": 98, + "column": 20 } } }, @@ -8619,48 +7040,48 @@ "type": "Identifier", "name": "highlightKeywords", "range": [ - 3861, - 3878 + 3255, + 3272 ], "loc": { "start": { - "line": 113, - "column": 20 + "line": 98, + "column": 21 }, "end": { - "line": 113, - "column": 37 + "line": 98, + "column": 38 } } }, "range": [ - 3853, - 3878 + 3247, + 3272 ], "loc": { "start": { - "line": 113, - "column": 12 + "line": 98, + "column": 13 }, "end": { - "line": 113, - "column": 37 + "line": 98, + "column": 38 } } }, "prefix": true, "range": [ - 3852, - 3878 + 3246, + 3272 ], "loc": { "start": { - "line": 113, - "column": 11 + "line": 98, + "column": 12 }, "end": { - "line": 113, - "column": 37 + "line": 98, + "column": 38 } } }, @@ -8671,48 +7092,48 @@ "type": "ReturnStatement", "argument": null, "range": [ - 3893, - 3900 + 3288, + 3295 ], "loc": { "start": { - "line": 114, + "line": 99, "column": 12 }, "end": { - "line": 114, + "line": 99, "column": 19 } } } ], "range": [ - 3879, - 3910 + 3274, + 3305 ], "loc": { "start": { - "line": 113, - "column": 38 + "line": 98, + "column": 40 }, "end": { - "line": 115, + "line": 100, "column": 9 } } }, "alternate": null, "range": [ - 3849, - 3910 + 3242, + 3305 ], "loc": { "start": { - "line": 113, + "line": 98, "column": 8 }, "end": { - "line": 115, + "line": 100, "column": 9 } }, @@ -8721,16 +7142,16 @@ "type": "Line", "value": " iterate filters values to unhighlight all values", "range": [ - 3919, - 3970 + 3314, + 3365 ], "loc": { "start": { - "line": 116, + "line": 101, "column": 8 }, "end": { - "line": 116, + "line": 101, "column": 59 } } @@ -8755,16 +7176,16 @@ "object": { "type": "ThisExpression", "range": [ - 3979, - 3983 + 3374, + 3378 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 8 }, "end": { - "line": 117, + "line": 102, "column": 12 } } @@ -8773,31 +7194,31 @@ "type": "Identifier", "name": "tf", "range": [ - 3984, - 3986 + 3379, + 3381 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 13 }, "end": { - "line": 117, + "line": 102, "column": 15 } } }, "range": [ - 3979, - 3986 + 3374, + 3381 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 8 }, "end": { - "line": 117, + "line": 102, "column": 15 } } @@ -8806,47 +7227,47 @@ "type": "Identifier", "name": "getFiltersValue", "range": [ - 3987, - 4002 + 3382, + 3397 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 16 }, "end": { - "line": 117, + "line": 102, "column": 31 } } }, "range": [ - 3979, - 4002 + 3374, + 3397 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 8 }, "end": { - "line": 117, + "line": 102, "column": 31 } } }, "arguments": [], "range": [ - 3979, - 4004 + 3374, + 3399 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 8 }, "end": { - "line": 117, + "line": 102, "column": 33 } } @@ -8855,31 +7276,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 4005, - 4012 + 3400, + 3407 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 34 }, "end": { - "line": 117, + "line": 102, "column": 41 } } }, "range": [ - 3979, - 4012 + 3374, + 3407 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 8 }, "end": { - "line": 117, + "line": 102, "column": 41 } } @@ -8893,16 +7314,16 @@ "type": "Identifier", "name": "val", "range": [ - 4014, - 4017 + 3409, + 3412 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 43 }, "end": { - "line": 117, + "line": 102, "column": 46 } } @@ -8922,17 +7343,17 @@ "type": "Identifier", "name": "Types", "range": [ - 4038, - 4043 + 3435, + 3440 ], "loc": { "start": { - "line": 118, - "column": 15 + "line": 103, + "column": 16 }, "end": { - "line": 118, - "column": 20 + "line": 103, + "column": 21 } } }, @@ -8940,32 +7361,32 @@ "type": "Identifier", "name": "isArray", "range": [ - 4044, - 4051 + 3441, + 3448 ], "loc": { "start": { - "line": 118, - "column": 21 + "line": 103, + "column": 22 }, "end": { - "line": 118, - "column": 28 + "line": 103, + "column": 29 } } }, "range": [ - 4038, - 4051 + 3435, + 3448 ], "loc": { "start": { - "line": 118, - "column": 15 + "line": 103, + "column": 16 }, "end": { - "line": 118, - "column": 28 + "line": 103, + "column": 29 } } }, @@ -8974,33 +7395,33 @@ "type": "Identifier", "name": "val", "range": [ - 4052, - 4055 + 3449, + 3452 ], "loc": { "start": { - "line": 118, - "column": 29 + "line": 103, + "column": 30 }, "end": { - "line": 118, - "column": 32 + "line": 103, + "column": 33 } } } ], "range": [ - 4038, - 4056 + 3435, + 3453 ], "loc": { "start": { - "line": 118, - "column": 15 + "line": 103, + "column": 16 }, "end": { - "line": 118, - "column": 33 + "line": 103, + "column": 34 } } }, @@ -9018,16 +7439,16 @@ "type": "Identifier", "name": "val", "range": [ - 4075, - 4078 + 3473, + 3476 ], "loc": { "start": { - "line": 119, + "line": 104, "column": 16 }, "end": { - "line": 119, + "line": 104, "column": 19 } } @@ -9036,31 +7457,31 @@ "type": "Identifier", "name": "forEach", "range": [ - 4079, - 4086 + 3477, + 3484 ], "loc": { "start": { - "line": 119, + "line": 104, "column": 20 }, "end": { - "line": 119, + "line": 104, "column": 27 } } }, "range": [ - 4075, - 4086 + 3473, + 3484 ], "loc": { "start": { - "line": 119, + "line": 104, "column": 16 }, "end": { - "line": 119, + "line": 104, "column": 27 } } @@ -9074,16 +7495,16 @@ "type": "Identifier", "name": "item", "range": [ - 4088, - 4092 + 3486, + 3490 ], "loc": { "start": { - "line": 119, + "line": 104, "column": 29 }, "end": { - "line": 119, + "line": 104, "column": 33 } } @@ -9097,16 +7518,16 @@ "object": { "type": "ThisExpression", "range": [ - 4116, - 4120 + 3515, + 3519 ], "loc": { "start": { - "line": 120, + "line": 105, "column": 20 }, "end": { - "line": 120, + "line": 105, "column": 24 } } @@ -9115,31 +7536,31 @@ "type": "Identifier", "name": "unhighlight", "range": [ - 4121, - 4132 + 3520, + 3531 ], "loc": { "start": { - "line": 120, + "line": 105, "column": 25 }, "end": { - "line": 120, + "line": 105, "column": 36 } } }, "range": [ - 4116, - 4132 + 3515, + 3531 ], "loc": { "start": { - "line": 120, + "line": 105, "column": 20 }, "end": { - "line": 120, + "line": 105, "column": 36 } } @@ -9149,16 +7570,16 @@ "type": "Identifier", "name": "item", "range": [ - 4133, - 4137 + 3532, + 3536 ], "loc": { "start": { - "line": 120, + "line": 105, "column": 37 }, "end": { - "line": 120, + "line": 105, "column": 41 } } @@ -9169,16 +7590,16 @@ "object": { "type": "ThisExpression", "range": [ - 4139, - 4143 + 3538, + 3542 ], "loc": { "start": { - "line": 120, + "line": 105, "column": 43 }, "end": { - "line": 120, + "line": 105, "column": 47 } } @@ -9187,47 +7608,47 @@ "type": "Identifier", "name": "highlightCssClass", "range": [ - 4144, - 4161 + 3543, + 3560 ], "loc": { "start": { - "line": 120, + "line": 105, "column": 48 }, "end": { - "line": 120, + "line": 105, "column": 65 } } }, "range": [ - 4139, - 4161 + 3538, + 3560 ], "loc": { "start": { - "line": 120, + "line": 105, "column": 43 }, "end": { - "line": 120, + "line": 105, "column": 65 } } } ], "range": [ - 4116, - 4162 + 3515, + 3561 ], "loc": { "start": { - "line": 120, + "line": 105, "column": 20 }, "end": { - "line": 120, + "line": 105, "column": 66 } } @@ -9235,63 +7656,63 @@ "generator": false, "expression": true, "range": [ - 4087, - 4162 + 3485, + 3561 ], "loc": { "start": { - "line": 119, + "line": 104, "column": 28 }, "end": { - "line": 120, + "line": 105, "column": 66 } } } ], "range": [ - 4075, - 4163 + 3473, + 3562 ], "loc": { "start": { - "line": 119, + "line": 104, "column": 16 }, "end": { - "line": 120, + "line": 105, "column": 67 } } }, "range": [ - 4075, - 4164 + 3473, + 3563 ], "loc": { "start": { - "line": 119, + "line": 104, "column": 16 }, "end": { - "line": 120, + "line": 105, "column": 68 } } } ], "range": [ - 4057, - 4178 + 3455, + 3577 ], "loc": { "start": { - "line": 118, - "column": 34 + "line": 103, + "column": 36 }, "end": { - "line": 121, + "line": 106, "column": 13 } } @@ -9309,16 +7730,16 @@ "object": { "type": "ThisExpression", "range": [ - 4202, - 4206 + 3601, + 3605 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 16 }, "end": { - "line": 122, + "line": 107, "column": 20 } } @@ -9327,31 +7748,31 @@ "type": "Identifier", "name": "unhighlight", "range": [ - 4207, - 4218 + 3606, + 3617 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 21 }, "end": { - "line": 122, + "line": 107, "column": 32 } } }, "range": [ - 4202, - 4218 + 3601, + 3617 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 16 }, "end": { - "line": 122, + "line": 107, "column": 32 } } @@ -9361,16 +7782,16 @@ "type": "Identifier", "name": "val", "range": [ - 4219, - 4222 + 3618, + 3621 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 33 }, "end": { - "line": 122, + "line": 107, "column": 36 } } @@ -9381,16 +7802,16 @@ "object": { "type": "ThisExpression", "range": [ - 4224, - 4228 + 3623, + 3627 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 38 }, "end": { - "line": 122, + "line": 107, "column": 42 } } @@ -9399,109 +7820,109 @@ "type": "Identifier", "name": "highlightCssClass", "range": [ - 4229, - 4246 + 3628, + 3645 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 43 }, "end": { - "line": 122, + "line": 107, "column": 60 } } }, "range": [ - 4224, - 4246 + 3623, + 3645 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 38 }, "end": { - "line": 122, + "line": 107, "column": 60 } } } ], "range": [ - 4202, - 4247 + 3601, + 3646 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 16 }, "end": { - "line": 122, + "line": 107, "column": 61 } } }, "range": [ - 4202, - 4248 + 3601, + 3647 ], "loc": { "start": { - "line": 122, + "line": 107, "column": 16 }, "end": { - "line": 122, + "line": 107, "column": 62 } } } ], "range": [ - 4184, - 4262 + 3583, + 3661 ], "loc": { "start": { - "line": 121, + "line": 106, "column": 19 }, "end": { - "line": 123, + "line": 108, "column": 13 } } }, "range": [ - 4035, - 4262 + 3431, + 3661 ], "loc": { "start": { - "line": 118, + "line": 103, "column": 12 }, "end": { - "line": 123, + "line": 108, "column": 13 } } } ], "range": [ - 4021, - 4272 + 3417, + 3671 ], "loc": { "start": { - "line": 117, - "column": 50 + "line": 102, + "column": 51 }, "end": { - "line": 124, + "line": 109, "column": 9 } } @@ -9509,47 +7930,47 @@ "generator": false, "expression": false, "range": [ - 4013, - 4272 + 3408, + 3671 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 42 }, "end": { - "line": 124, + "line": 109, "column": 9 } } } ], "range": [ - 3979, - 4273 + 3374, + 3672 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 8 }, "end": { - "line": 124, + "line": 109, "column": 10 } } }, "range": [ - 3979, - 4274 + 3374, + 3673 ], "loc": { "start": { - "line": 117, + "line": 102, "column": 8 }, "end": { - "line": 124, + "line": 109, "column": 11 } }, @@ -9558,140 +7979,34 @@ "type": "Line", "value": " iterate filters values to unhighlight all values", "range": [ - 3919, - 3970 + 3314, + 3365 ], "loc": { "start": { - "line": 116, + "line": 101, "column": 8 }, "end": { - "line": 116, + "line": 101, "column": 59 } } } ] - }, - { - "type": "ExpressionStatement", - "expression": { - "type": "AssignmentExpression", - "operator": "=", - "left": { - "type": "MemberExpression", - "computed": false, - "object": { - "type": "ThisExpression", - "range": [ - 4283, - 4287 - ], - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 12 - } - } - }, - "property": { - "type": "Identifier", - "name": "highlightedNodes", - "range": [ - 4288, - 4304 - ], - "loc": { - "start": { - "line": 125, - "column": 13 - }, - "end": { - "line": 125, - "column": 29 - } - } - }, - "range": [ - 4283, - 4304 - ], - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 29 - } - } - }, - "right": { - "type": "ArrayExpression", - "elements": [], - "range": [ - 4307, - 4309 - ], - "loc": { - "start": { - "line": 125, - "column": 32 - }, - "end": { - "line": 125, - "column": 34 - } - } - }, - "range": [ - 4283, - 4309 - ], - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 34 - } - } - }, - "range": [ - 4283, - 4310 - ], - "loc": { - "start": { - "line": 125, - "column": 8 - }, - "end": { - "line": 125, - "column": 35 - } - } } ], "range": [ - 3839, - 4316 + 3232, + 3679 ], "loc": { "start": { - "line": 112, - "column": 20 + "line": 97, + "column": 21 }, "end": { - "line": 126, + "line": 110, "column": 5 } } @@ -9699,16 +8014,16 @@ "generator": false, "expression": false, "range": [ - 3837, - 4316 + 3229, + 3679 ], "loc": { "start": { - "line": 112, + "line": 97, "column": 18 }, "end": { - "line": 126, + "line": 110, "column": 5 } } @@ -9716,16 +8031,16 @@ "kind": "method", "computed": false, "range": [ - 3823, - 4316 + 3215, + 3679 ], "loc": { "start": { - "line": 112, + "line": 97, "column": 4 }, "end": { - "line": 126, + "line": 110, "column": 5 } }, @@ -9734,16 +8049,16 @@ "type": "Block", "value": "*\n * Clear all occurrences of highlighted nodes\n ", "range": [ - 3757, - 3818 + 3149, + 3210 ], "loc": { "start": { - "line": 109, + "line": 94, "column": 4 }, "end": { - "line": 111, + "line": 96, "column": 7 } } @@ -9757,16 +8072,16 @@ "type": "Identifier", "name": "destroy", "range": [ - 4322, - 4329 + 3685, + 3692 ], "loc": { "start": { - "line": 128, + "line": 112, "column": 4 }, "end": { - "line": 128, + "line": 112, "column": 11 } } @@ -9791,16 +8106,16 @@ "object": { "type": "ThisExpression", "range": [ - 4341, - 4345 + 3705, + 3709 ], "loc": { "start": { - "line": 129, + "line": 113, "column": 8 }, "end": { - "line": 129, + "line": 113, "column": 12 } } @@ -9809,31 +8124,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 4346, - 4353 + 3710, + 3717 ], "loc": { "start": { - "line": 129, + "line": 113, "column": 13 }, "end": { - "line": 129, + "line": 113, "column": 20 } } }, "range": [ - 4341, - 4353 + 3705, + 3717 ], "loc": { "start": { - "line": 129, + "line": 113, "column": 8 }, "end": { - "line": 129, + "line": 113, "column": 20 } } @@ -9842,31 +8157,31 @@ "type": "Identifier", "name": "off", "range": [ - 4354, - 4357 + 3718, + 3721 ], "loc": { "start": { - "line": 129, + "line": 113, "column": 21 }, "end": { - "line": 129, + "line": 113, "column": 24 } } }, "range": [ - 4341, - 4357 + 3705, + 3721 ], "loc": { "start": { - "line": 129, + "line": 113, "column": 8 }, "end": { - "line": 129, + "line": 113, "column": 24 } } @@ -9880,16 +8195,16 @@ "value": "before-filtering", "raw": "'before-filtering'", "range": [ - 4372, - 4390 + 3736, + 3754 ], "loc": { "start": { - "line": 130, + "line": 114, "column": 13 }, "end": { - "line": 130, + "line": 114, "column": 31 } } @@ -9899,32 +8214,32 @@ "value": "destroy", "raw": "'destroy'", "range": [ - 4392, - 4401 + 3756, + 3765 ], "loc": { "start": { - "line": 130, + "line": 114, "column": 33 }, "end": { - "line": 130, + "line": 114, "column": 42 } } } ], "range": [ - 4371, - 4402 + 3735, + 3766 ], "loc": { "start": { - "line": 130, + "line": 114, "column": 12 }, "end": { - "line": 130, + "line": 114, "column": 43 } } @@ -9941,17 +8256,17 @@ "object": { "type": "ThisExpression", "range": [ - 4421, - 4425 + 3786, + 3790 ], "loc": { "start": { - "line": 131, - "column": 17 + "line": 115, + "column": 18 }, "end": { - "line": 131, - "column": 21 + "line": 115, + "column": 22 } } }, @@ -9959,95 +8274,95 @@ "type": "Identifier", "name": "unhighlightAll", "range": [ - 4426, - 4440 + 3791, + 3805 ], "loc": { "start": { - "line": 131, - "column": 22 + "line": 115, + "column": 23 }, "end": { - "line": 131, - "column": 36 + "line": 115, + "column": 37 } } }, "range": [ - 4421, - 4440 + 3786, + 3805 ], "loc": { "start": { - "line": 131, - "column": 17 + "line": 115, + "column": 18 }, "end": { - "line": 131, - "column": 36 + "line": 115, + "column": 37 } } }, "arguments": [], "range": [ - 4421, - 4442 + 3786, + 3807 ], "loc": { "start": { - "line": 131, - "column": 17 + "line": 115, + "column": 18 }, "end": { - "line": 131, - "column": 38 + "line": 115, + "column": 39 } } }, "generator": false, "expression": true, "range": [ - 4416, - 4442 + 3780, + 3807 ], "loc": { "start": { - "line": 131, + "line": 115, "column": 12 }, "end": { - "line": 131, - "column": 38 + "line": 115, + "column": 39 } } } ], "range": [ - 4341, - 4452 + 3705, + 3817 ], "loc": { "start": { - "line": 129, + "line": 113, "column": 8 }, "end": { - "line": 132, + "line": 116, "column": 9 } } }, "range": [ - 4341, - 4453 + 3705, + 3818 ], "loc": { "start": { - "line": 129, + "line": 113, "column": 8 }, "end": { - "line": 132, + "line": 116, "column": 10 } } @@ -10065,16 +8380,16 @@ "object": { "type": "ThisExpression", "range": [ - 4462, - 4466 + 3827, + 3831 ], "loc": { "start": { - "line": 133, + "line": 117, "column": 8 }, "end": { - "line": 133, + "line": 117, "column": 12 } } @@ -10083,31 +8398,31 @@ "type": "Identifier", "name": "emitter", "range": [ - 4467, - 4474 + 3832, + 3839 ], "loc": { "start": { - "line": 133, + "line": 117, "column": 13 }, "end": { - "line": 133, + "line": 117, "column": 20 } } }, "range": [ - 4462, - 4474 + 3827, + 3839 ], "loc": { "start": { - "line": 133, + "line": 117, "column": 8 }, "end": { - "line": 133, + "line": 117, "column": 20 } } @@ -10116,31 +8431,31 @@ "type": "Identifier", "name": "off", "range": [ - 4475, - 4478 + 3840, + 3843 ], "loc": { "start": { - "line": 133, + "line": 117, "column": 21 }, "end": { - "line": 133, + "line": 117, "column": 24 } } }, "range": [ - 4462, - 4478 + 3827, + 3843 ], "loc": { "start": { - "line": 133, + "line": 117, "column": 8 }, "end": { - "line": 133, + "line": 117, "column": 24 } } @@ -10154,32 +8469,32 @@ "value": "highlight-keyword", "raw": "'highlight-keyword'", "range": [ - 4493, - 4512 + 3858, + 3877 ], "loc": { "start": { - "line": 134, + "line": 118, "column": 13 }, "end": { - "line": 134, + "line": 118, "column": 32 } } } ], "range": [ - 4492, - 4513 + 3857, + 3878 ], "loc": { "start": { - "line": 134, + "line": 118, "column": 12 }, "end": { - "line": 134, + "line": 118, "column": 33 } } @@ -10192,16 +8507,16 @@ "type": "Identifier", "name": "tf", "range": [ - 4528, - 4530 + 3893, + 3895 ], "loc": { "start": { - "line": 135, + "line": 119, "column": 13 }, "end": { - "line": 135, + "line": 119, "column": 15 } } @@ -10210,16 +8525,16 @@ "type": "Identifier", "name": "cell", "range": [ - 4532, - 4536 + 3897, + 3901 ], "loc": { "start": { - "line": 135, + "line": 119, "column": 17 }, "end": { - "line": 135, + "line": 119, "column": 21 } } @@ -10228,16 +8543,16 @@ "type": "Identifier", "name": "word", "range": [ - 4538, - 4542 + 3903, + 3907 ], "loc": { "start": { - "line": 135, + "line": 119, "column": 23 }, "end": { - "line": 135, + "line": 119, "column": 27 } } @@ -10251,16 +8566,16 @@ "object": { "type": "ThisExpression", "range": [ - 4562, - 4566 + 3928, + 3932 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 16 }, "end": { - "line": 136, + "line": 120, "column": 20 } } @@ -10269,31 +8584,31 @@ "type": "Identifier", "name": "highlight", "range": [ - 4567, - 4576 + 3933, + 3942 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 21 }, "end": { - "line": 136, + "line": 120, "column": 30 } } }, "range": [ - 4562, - 4576 + 3928, + 3942 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 16 }, "end": { - "line": 136, + "line": 120, "column": 30 } } @@ -10303,16 +8618,16 @@ "type": "Identifier", "name": "cell", "range": [ - 4577, - 4581 + 3943, + 3947 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 31 }, "end": { - "line": 136, + "line": 120, "column": 35 } } @@ -10321,16 +8636,16 @@ "type": "Identifier", "name": "word", "range": [ - 4583, - 4587 + 3949, + 3953 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 37 }, "end": { - "line": 136, + "line": 120, "column": 41 } } @@ -10341,16 +8656,16 @@ "object": { "type": "ThisExpression", "range": [ - 4589, - 4593 + 3955, + 3959 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 43 }, "end": { - "line": 136, + "line": 120, "column": 47 } } @@ -10359,47 +8674,47 @@ "type": "Identifier", "name": "highlightCssClass", "range": [ - 4594, - 4611 + 3960, + 3977 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 48 }, "end": { - "line": 136, + "line": 120, "column": 65 } } }, "range": [ - 4589, - 4611 + 3955, + 3977 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 43 }, "end": { - "line": 136, + "line": 120, "column": 65 } } } ], "range": [ - 4562, - 4612 + 3928, + 3978 ], "loc": { "start": { - "line": 136, + "line": 120, "column": 16 }, "end": { - "line": 136, + "line": 120, "column": 66 } } @@ -10407,63 +8722,63 @@ "generator": false, "expression": true, "range": [ - 4527, - 4612 + 3892, + 3978 ], "loc": { "start": { - "line": 135, + "line": 119, "column": 12 }, "end": { - "line": 136, + "line": 120, "column": 66 } } } ], "range": [ - 4462, - 4622 + 3827, + 3988 ], "loc": { "start": { - "line": 133, + "line": 117, "column": 8 }, "end": { - "line": 137, + "line": 121, "column": 9 } } }, "range": [ - 4462, - 4623 + 3827, + 3989 ], "loc": { "start": { - "line": 133, + "line": 117, "column": 8 }, "end": { - "line": 137, + "line": 121, "column": 10 } } } ], "range": [ - 4331, - 4629 + 3695, + 3995 ], "loc": { "start": { - "line": 128, - "column": 13 + "line": 112, + "column": 14 }, "end": { - "line": 138, + "line": 122, "column": 5 } } @@ -10471,16 +8786,16 @@ "generator": false, "expression": false, "range": [ - 4329, - 4629 + 3692, + 3995 ], "loc": { "start": { - "line": 128, + "line": 112, "column": 11 }, "end": { - "line": 138, + "line": 122, "column": 5 } } @@ -10488,16 +8803,16 @@ "kind": "method", "computed": false, "range": [ - 4322, - 4629 + 3685, + 3995 ], "loc": { "start": { - "line": 128, + "line": 112, "column": 4 }, "end": { - "line": 138, + "line": 122, "column": 5 } }, @@ -10505,23 +8820,23 @@ } ], "range": [ - 115, - 4631 + 116, + 3997 ], "loc": { "start": { "line": 5, - "column": 29 + "column": 30 }, "end": { - "line": 139, + "line": 123, "column": 1 } } }, "range": [ 93, - 4631 + 3997 ], "loc": { "start": { @@ -10529,7 +8844,7 @@ "column": 7 }, "end": { - "line": 139, + "line": 123, "column": 1 } }, @@ -10540,7 +8855,7 @@ "source": null, "range": [ 86, - 4631 + 3997 ], "loc": { "start": { @@ -10548,7 +8863,7 @@ "column": 0 }, "end": { - "line": 139, + "line": 123, "column": 1 } } @@ -10557,7 +8872,7 @@ "sourceType": "module", "range": [ 0, - 4631 + 3997 ], "loc": { "start": { @@ -10565,7 +8880,7 @@ "column": 0 }, "end": { - "line": 139, + "line": 123, "column": 1 } }, @@ -10574,8 +8889,8 @@ "type": "Block", "value": "*\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n ", "range": [ - 122, - 231 + 123, + 232 ], "loc": { "start": { @@ -10592,8 +8907,8 @@ "type": "Line", "value": "defines css class for highlighting", "range": [ - 291, - 327 + 292, + 328 ], "loc": { "start": { @@ -10608,18 +8923,18 @@ }, { "type": "Block", - "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n ", + "value": "*\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n ", "range": [ - 810, - 1003 + 778, + 1012 ], "loc": { "start": { - "line": 33, + "line": 32, "column": 4 }, "end": { - "line": 38, + "line": 39, "column": 7 } } @@ -10628,16 +8943,16 @@ "type": "Line", "value": " Iterate into this nodes childNodes", "range": [ - 1049, - 1086 + 1059, + 1096 ], "loc": { "start": { - "line": 40, + "line": 41, "column": 8 }, "end": { - "line": 40, + "line": 41, "column": 45 } } @@ -10646,16 +8961,16 @@ "type": "Line", "value": " word not highlighted yet", "range": [ - 1606, - 1633 + 1632, + 1659 ], "loc": { "start": { - "line": 54, + "line": 55, "column": 20 }, "end": { - "line": 54, + "line": 55, "column": 47 } } @@ -10664,16 +8979,16 @@ "type": "Line", "value": " Create a load of replacement nodes", "range": [ - 1766, - 1803 + 1792, + 1829 ], "loc": { "start": { - "line": 57, + "line": 58, "column": 24 }, "end": { - "line": 57, + "line": 58, "column": 61 } } @@ -10682,8 +8997,8 @@ "type": "Block", "value": "*\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n ", "range": [ - 2522, - 2672 + 2487, + 2637 ], "loc": { "start": { @@ -10700,16 +9015,16 @@ "type": "Block", "value": "*\n * Clear all occurrences of highlighted nodes\n ", "range": [ - 3757, - 3818 + 3149, + 3210 ], "loc": { "start": { - "line": 109, + "line": 94, "column": 4 }, "end": { - "line": 111, + "line": 96, "column": 7 } } @@ -10718,16 +9033,16 @@ "type": "Line", "value": " iterate filters values to unhighlight all values", "range": [ - 3919, - 3970 + 3314, + 3365 ], "loc": { "start": { - "line": 116, + "line": 101, "column": 8 }, "end": { - "line": 116, + "line": 101, "column": 59 } } diff --git a/docs/class/src/emitter.js~Emitter.html b/docs/class/src/emitter.js~Emitter.html index ac5f1e42..3a362f94 100644 --- a/docs/class/src/emitter.js~Emitter.html +++ b/docs/class/src/emitter.js~Emitter.html @@ -3,7 +3,7 @@ - Emitter | tablefilter v0.2.3 API Document + Emitter | tablefilter v0.2.4 API Document diff --git a/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html b/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html index 1c705939..3c8d1b10 100644 --- a/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html +++ b/docs/class/src/extensions/advancedGrid/adapterEzEditTable.js~AdapterEzEditTable.html @@ -3,7 +3,7 @@ - AdapterEzEditTable | tablefilter v0.2.3 API Document + AdapterEzEditTable | tablefilter v0.2.4 API Document diff --git a/docs/class/src/extensions/colOps/colOps.js~ColOps.html b/docs/class/src/extensions/colOps/colOps.js~ColOps.html index aa78100b..3ba234a8 100644 --- a/docs/class/src/extensions/colOps/colOps.js~ColOps.html +++ b/docs/class/src/extensions/colOps/colOps.js~ColOps.html @@ -3,7 +3,7 @@ - ColOps | tablefilter v0.2.3 API Document + ColOps | tablefilter v0.2.4 API Document diff --git a/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html b/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html index 91a47ae8..333ab901 100644 --- a/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html +++ b/docs/class/src/extensions/colsVisibility/colsVisibility.js~ColsVisibility.html @@ -3,7 +3,7 @@ - ColsVisibility | tablefilter v0.2.3 API Document + ColsVisibility | tablefilter v0.2.4 API Document diff --git a/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html b/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html index e97c4d26..3a8c9ae3 100644 --- a/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html +++ b/docs/class/src/extensions/filtersVisibility/filtersVisibility.js~FiltersVisibility.html @@ -3,7 +3,7 @@ - FiltersVisibility | tablefilter v0.2.3 API Document + FiltersVisibility | tablefilter v0.2.4 API Document diff --git a/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html b/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html index 456c5572..0d28aa45 100644 --- a/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html +++ b/docs/class/src/extensions/sort/adapterSortabletable.js~AdapterSortableTable.html @@ -3,7 +3,7 @@ - AdapterSortableTable | tablefilter v0.2.3 API Document + AdapterSortableTable | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/alternateRows.js~AlternateRows.html b/docs/class/src/modules/alternateRows.js~AlternateRows.html index b3ac7a59..c4067021 100644 --- a/docs/class/src/modules/alternateRows.js~AlternateRows.html +++ b/docs/class/src/modules/alternateRows.js~AlternateRows.html @@ -3,7 +3,7 @@ - AlternateRows | tablefilter v0.2.3 API Document + AlternateRows | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/checkList.js~CheckList.html b/docs/class/src/modules/checkList.js~CheckList.html index a9c2007b..81e2a144 100644 --- a/docs/class/src/modules/checkList.js~CheckList.html +++ b/docs/class/src/modules/checkList.js~CheckList.html @@ -3,7 +3,7 @@ - CheckList | tablefilter v0.2.3 API Document + CheckList | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/clearButton.js~ClearButton.html b/docs/class/src/modules/clearButton.js~ClearButton.html index 73525fc1..67fe8418 100644 --- a/docs/class/src/modules/clearButton.js~ClearButton.html +++ b/docs/class/src/modules/clearButton.js~ClearButton.html @@ -3,7 +3,7 @@ - ClearButton | tablefilter v0.2.3 API Document + ClearButton | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/dropdown.js~Dropdown.html b/docs/class/src/modules/dropdown.js~Dropdown.html index 05961c9b..3625cbbf 100644 --- a/docs/class/src/modules/dropdown.js~Dropdown.html +++ b/docs/class/src/modules/dropdown.js~Dropdown.html @@ -3,7 +3,7 @@ - Dropdown | tablefilter v0.2.3 API Document + Dropdown | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/feature.js~Feature.html b/docs/class/src/modules/feature.js~Feature.html index 17f41034..3e9c972e 100644 --- a/docs/class/src/modules/feature.js~Feature.html +++ b/docs/class/src/modules/feature.js~Feature.html @@ -3,7 +3,7 @@ - Feature | tablefilter v0.2.3 API Document + Feature | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/gridLayout.js~GridLayout.html b/docs/class/src/modules/gridLayout.js~GridLayout.html index 8d32a1d2..47f5e9ab 100644 --- a/docs/class/src/modules/gridLayout.js~GridLayout.html +++ b/docs/class/src/modules/gridLayout.js~GridLayout.html @@ -3,7 +3,7 @@ - GridLayout | tablefilter v0.2.3 API Document + GridLayout | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/hash.js~Hash.html b/docs/class/src/modules/hash.js~Hash.html index 743115e5..e453667a 100644 --- a/docs/class/src/modules/hash.js~Hash.html +++ b/docs/class/src/modules/hash.js~Hash.html @@ -3,7 +3,7 @@ - Hash | tablefilter v0.2.3 API Document + Hash | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/help.js~Help.html b/docs/class/src/modules/help.js~Help.html index 46a81f22..47889e13 100644 --- a/docs/class/src/modules/help.js~Help.html +++ b/docs/class/src/modules/help.js~Help.html @@ -3,7 +3,7 @@ - Help | tablefilter v0.2.3 API Document + Help | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html index 25fc0dd3..12b16601 100644 --- a/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html +++ b/docs/class/src/modules/highlightKeywords.js~HighlightKeyword.html @@ -3,7 +3,7 @@ - HighlightKeyword | tablefilter v0.2.3 API Document + HighlightKeyword | tablefilter v0.2.4 API Document @@ -194,31 +194,6 @@ - - - -
-

- highlightedNodes: * -

-
-
- - - -
- - - - - - - - - public - - - @@ -455,7 +430,7 @@ - source + source @@ -523,46 +498,6 @@ - -
-

- public - - - - - highlightedNodes: * - - - - source - -

- - - - - - - - -
-
- - - - - - - - - - - - - - -

@@ -575,7 +510,7 @@ - source + source

@@ -618,7 +553,7 @@ - source + source @@ -658,7 +593,7 @@ - source + source @@ -696,6 +631,7 @@ String

Css class name

+

TODO: refactor this method

@@ -729,7 +665,7 @@ - source + source @@ -833,7 +769,7 @@ - source + source diff --git a/docs/class/src/modules/loader.js~Loader.html b/docs/class/src/modules/loader.js~Loader.html index db019bd4..9dde76b6 100644 --- a/docs/class/src/modules/loader.js~Loader.html +++ b/docs/class/src/modules/loader.js~Loader.html @@ -3,7 +3,7 @@ - Loader | tablefilter v0.2.3 API Document + Loader | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/noResults.js~NoResults.html b/docs/class/src/modules/noResults.js~NoResults.html index c383f89b..dbf1e826 100644 --- a/docs/class/src/modules/noResults.js~NoResults.html +++ b/docs/class/src/modules/noResults.js~NoResults.html @@ -3,7 +3,7 @@ - NoResults | tablefilter v0.2.3 API Document + NoResults | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/paging.js~Paging.html b/docs/class/src/modules/paging.js~Paging.html index c6740b88..f1465b8b 100644 --- a/docs/class/src/modules/paging.js~Paging.html +++ b/docs/class/src/modules/paging.js~Paging.html @@ -3,7 +3,7 @@ - Paging | tablefilter v0.2.3 API Document + Paging | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/popupFilter.js~PopupFilter.html b/docs/class/src/modules/popupFilter.js~PopupFilter.html index 14967f8d..8320b4eb 100644 --- a/docs/class/src/modules/popupFilter.js~PopupFilter.html +++ b/docs/class/src/modules/popupFilter.js~PopupFilter.html @@ -3,7 +3,7 @@ - PopupFilter | tablefilter v0.2.3 API Document + PopupFilter | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/rowsCounter.js~RowsCounter.html b/docs/class/src/modules/rowsCounter.js~RowsCounter.html index 3f9d4578..b6d6c831 100644 --- a/docs/class/src/modules/rowsCounter.js~RowsCounter.html +++ b/docs/class/src/modules/rowsCounter.js~RowsCounter.html @@ -3,7 +3,7 @@ - RowsCounter | tablefilter v0.2.3 API Document + RowsCounter | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/state.js~State.html b/docs/class/src/modules/state.js~State.html index 849e5ead..f37b3568 100644 --- a/docs/class/src/modules/state.js~State.html +++ b/docs/class/src/modules/state.js~State.html @@ -3,7 +3,7 @@ - State | tablefilter v0.2.3 API Document + State | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/statusBar.js~StatusBar.html b/docs/class/src/modules/statusBar.js~StatusBar.html index 886deb07..febc0a00 100644 --- a/docs/class/src/modules/statusBar.js~StatusBar.html +++ b/docs/class/src/modules/statusBar.js~StatusBar.html @@ -3,7 +3,7 @@ - StatusBar | tablefilter v0.2.3 API Document + StatusBar | tablefilter v0.2.4 API Document diff --git a/docs/class/src/modules/store.js~Store.html b/docs/class/src/modules/store.js~Store.html index 38e739cc..46143835 100644 --- a/docs/class/src/modules/store.js~Store.html +++ b/docs/class/src/modules/store.js~Store.html @@ -3,7 +3,7 @@ - Store | tablefilter v0.2.3 API Document + Store | tablefilter v0.2.4 API Document diff --git a/docs/class/src/tablefilter.js~TableFilter.html b/docs/class/src/tablefilter.js~TableFilter.html index 65e99da3..ded9da3e 100644 --- a/docs/class/src/tablefilter.js~TableFilter.html +++ b/docs/class/src/tablefilter.js~TableFilter.html @@ -3,7 +3,7 @@ - TableFilter | tablefilter v0.2.3 API Document + TableFilter | tablefilter v0.2.4 API Document diff --git a/docs/coverage.json b/docs/coverage.json index 2d2bdc00..73187b63 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -1,6 +1,6 @@ { - "coverage": "25.88%", - "expectCount": 738, + "coverage": "25.91%", + "expectCount": 737, "actualCount": 191, "files": { "src/extensions/advancedGrid/adapterEzEditTable.js": { @@ -469,16 +469,15 @@ ] }, "src/modules/highlightKeywords.js": { - "expectCount": 11, + "expectCount": 10, "actualCount": 4, "undocumentLines": [ 5, - 128, - 18, + 112, + 17, 14, - 15, - 21, - 17 + 20, + 16 ] }, "src/modules/loader.js": { diff --git a/docs/dump.json b/docs/dump.json index 17688e53..2263d8f7 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -7607,7 +7607,7 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import Dom from '../dom';\nimport Str from '../string';\nimport Types from '../types';\n\nexport class HighlightKeyword{\n\n /**\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n var f = tf.config();\n //defines css class for highlighting\n this.highlightCssClass = f.highlight_css_class || 'keyword';\n this.highlightedNodes = [];\n\n this.tf = tf;\n this.emitter = tf.emitter;\n }\n\n init(){\n this.emitter.on(\n ['before-filtering', 'destroy'],\n ()=> this.unhighlightAll()\n );\n this.emitter.on(\n ['highlight-keyword'],\n (tf, cell, word)=>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n\n /**\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n */\n highlight(node, word, cssClass){\n // Iterate into this nodes childNodes\n if(node.hasChildNodes){\n var children = node.childNodes;\n for(var i=0; i {\n if(Types.isArray(val)){\n val.forEach((item)=>\n this.unhighlight(item, this.highlightCssClass));\n } else {\n this.unhighlight(val, this.highlightCssClass);\n }\n });\n this.highlightedNodes = [];\n }\n\n destroy(){\n this.emitter.off(\n ['before-filtering', 'destroy'],\n ()=> this.unhighlightAll()\n );\n this.emitter.off(\n ['highlight-keyword'],\n (tf, cell, word)=>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n}" + "content": "import Dom from '../dom';\nimport Str from '../string';\nimport Types from '../types';\n\nexport class HighlightKeyword {\n\n /**\n * HighlightKeyword, highlight matched keyword\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n let f = tf.config();\n //defines css class for highlighting\n this.highlightCssClass = f.highlight_css_class || 'keyword';\n\n this.tf = tf;\n this.emitter = tf.emitter;\n }\n\n init() {\n this.emitter.on(\n ['before-filtering', 'destroy'],\n () => this.unhighlightAll()\n );\n this.emitter.on(\n ['highlight-keyword'],\n (tf, cell, word) =>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n\n /**\n * highlight occurences of searched term in passed node\n * @param {Node} node\n * @param {String} word Searched term\n * @param {String} cssClass Css class name\n *\n * TODO: refactor this method\n */\n highlight(node, word, cssClass) {\n // Iterate into this nodes childNodes\n if (node.hasChildNodes) {\n let children = node.childNodes;\n for (let i = 0; i < children.length; i++) {\n this.highlight(children[i], word, cssClass);\n }\n }\n\n if (node.nodeType === 3) {\n let tempNodeVal = Str.lower(node.nodeValue);\n let tempWordVal = Str.lower(word);\n if (tempNodeVal.indexOf(tempWordVal) !== -1) {\n let pn = node.parentNode;\n if (pn && pn.className !== cssClass) {\n // word not highlighted yet\n let nv = node.nodeValue,\n ni = tempNodeVal.indexOf(tempWordVal),\n // Create a load of replacement nodes\n before = Dom.text(nv.substr(0, ni)),\n docWordVal = nv.substr(ni, word.length),\n after = Dom.text(nv.substr(ni + word.length)),\n hiwordtext = Dom.text(docWordVal),\n hiword = Dom.create('span');\n hiword.className = cssClass;\n hiword.appendChild(hiwordtext);\n pn.insertBefore(before, node);\n pn.insertBefore(hiword, node);\n pn.insertBefore(after, node);\n pn.removeChild(node);\n }\n }\n }\n }\n\n /**\n * Removes highlight to nodes matching passed string\n * @param {String} word\n * @param {String} cssClass Css class to remove\n */\n unhighlight(word, cssClass) {\n let highlightedNodes = this.tf.tbl.querySelectorAll(`.${cssClass}`);\n for (let i = 0; i < highlightedNodes.length; i++) {\n let n = highlightedNodes[i];\n let nodeVal = Dom.getText(n),\n tempNodeVal = Str.lower(nodeVal),\n tempWordVal = Str.lower(word);\n\n if (tempNodeVal.indexOf(tempWordVal) !== -1) {\n n.parentNode.replaceChild(Dom.text(nodeVal), n);\n }\n }\n }\n\n /**\n * Clear all occurrences of highlighted nodes\n */\n unhighlightAll() {\n if (!this.tf.highlightKeywords) {\n return;\n }\n // iterate filters values to unhighlight all values\n this.tf.getFiltersValue().forEach((val) => {\n if (Types.isArray(val)) {\n val.forEach((item) =>\n this.unhighlight(item, this.highlightCssClass));\n } else {\n this.unhighlight(val, this.highlightCssClass);\n }\n });\n }\n\n destroy() {\n this.emitter.off(\n ['before-filtering', 'destroy'],\n () => this.unhighlightAll()\n );\n this.emitter.off(\n ['highlight-keyword'],\n (tf, cell, word) =>\n this.highlight(cell, word, this.highlightCssClass)\n );\n }\n}\n" }, { "__docId__": 396, @@ -7674,12 +7674,12 @@ "kind": "member", "static": false, "variation": null, - "name": "highlightedNodes", + "name": "tf", "memberof": "src/modules/highlightKeywords.js~HighlightKeyword", - "longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlightedNodes", + "longname": "src/modules/highlightKeywords.js~HighlightKeyword#tf", "access": null, "description": null, - "lineNumber": 15, + "lineNumber": 16, "undocument": true, "type": { "types": [ @@ -7692,9 +7692,9 @@ "kind": "member", "static": false, "variation": null, - "name": "tf", + "name": "emitter", "memberof": "src/modules/highlightKeywords.js~HighlightKeyword", - "longname": "src/modules/highlightKeywords.js~HighlightKeyword#tf", + "longname": "src/modules/highlightKeywords.js~HighlightKeyword#emitter", "access": null, "description": null, "lineNumber": 17, @@ -7707,24 +7707,6 @@ }, { "__docId__": 401, - "kind": "member", - "static": false, - "variation": null, - "name": "emitter", - "memberof": "src/modules/highlightKeywords.js~HighlightKeyword", - "longname": "src/modules/highlightKeywords.js~HighlightKeyword#emitter", - "access": null, - "description": null, - "lineNumber": 18, - "undocument": true, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 402, "kind": "method", "static": false, "variation": null, @@ -7733,13 +7715,13 @@ "longname": "src/modules/highlightKeywords.js~HighlightKeyword#init", "access": null, "description": null, - "lineNumber": 21, + "lineNumber": 20, "undocument": true, "params": [], "generator": false }, { - "__docId__": 403, + "__docId__": 402, "kind": "method", "static": false, "variation": null, @@ -7748,7 +7730,7 @@ "longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlight", "access": null, "description": "highlight occurences of searched term in passed node", - "lineNumber": 39, + "lineNumber": 40, "params": [ { "nullable": null, @@ -7778,13 +7760,13 @@ "spread": false, "optional": false, "name": "cssClass", - "description": "Css class name" + "description": "Css class name\n\nTODO: refactor this method" } ], "generator": false }, { - "__docId__": 404, + "__docId__": 403, "kind": "method", "static": false, "variation": null, @@ -7819,7 +7801,7 @@ "generator": false }, { - "__docId__": 405, + "__docId__": 404, "kind": "method", "static": false, "variation": null, @@ -7828,30 +7810,12 @@ "longname": "src/modules/highlightKeywords.js~HighlightKeyword#unhighlightAll", "access": null, "description": "Clear all occurrences of highlighted nodes", - "lineNumber": 112, + "lineNumber": 97, "params": [], "generator": false }, { - "__docId__": 406, - "kind": "member", - "static": false, - "variation": null, - "name": "highlightedNodes", - "memberof": "src/modules/highlightKeywords.js~HighlightKeyword", - "longname": "src/modules/highlightKeywords.js~HighlightKeyword#highlightedNodes", - "access": null, - "description": null, - "lineNumber": 125, - "undocument": true, - "type": { - "types": [ - "*" - ] - } - }, - { - "__docId__": 407, + "__docId__": 405, "kind": "method", "static": false, "variation": null, @@ -7860,13 +7824,13 @@ "longname": "src/modules/highlightKeywords.js~HighlightKeyword#destroy", "access": null, "description": null, - "lineNumber": 128, + "lineNumber": 112, "undocument": true, "params": [], "generator": false }, { - "__docId__": 408, + "__docId__": 406, "kind": "file", "static": true, "variation": null, @@ -7879,7 +7843,7 @@ "content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nlet global = window;\n\nexport class Loader extends Feature{\n\n /**\n * Loading message/spinner\n * @param {Object} tf TableFilter instance\n */\n constructor(tf) {\n super(tf, 'loader');\n\n // TableFilter configuration\n let f = this.config;\n\n //id of container element\n this.loaderTgtId = f.loader_target_id || null;\n //div containing loader\n this.loaderDiv = null;\n //defines loader text\n this.loaderText = f.loader_text || 'Loading...';\n //defines loader innerHtml\n this.loaderHtml = f.loader_html || null;\n //defines css class for loader div\n this.loaderCssClass = f.loader_css_class || 'loader';\n //delay for hiding loader\n this.loaderCloseDelay = 250;\n //callback function before loader is displayed\n this.onShowLoader = Types.isFn(f.on_show_loader) ?\n f.on_show_loader : null;\n //callback function after loader is closed\n this.onHideLoader = Types.isFn(f.on_hide_loader) ?\n f.on_hide_loader : null;\n //loader div\n this.prfxLoader = 'load_';\n }\n\n init() {\n if(this.initialized){\n return;\n }\n\n let tf = this.tf;\n let emitter = this.emitter;\n\n let containerDiv = Dom.create('div', ['id', this.prfxLoader+tf.id]);\n containerDiv.className = this.loaderCssClass;\n\n let targetEl = !this.loaderTgtId ?\n tf.tbl.parentNode : Dom.id(this.loaderTgtId);\n if(!this.loaderTgtId){\n targetEl.insertBefore(containerDiv, tf.tbl);\n } else {\n targetEl.appendChild(containerDiv);\n }\n this.loaderDiv = containerDiv;\n if(!this.loaderHtml){\n this.loaderDiv.appendChild(Dom.text(this.loaderText));\n } else {\n this.loaderDiv.innerHTML = this.loaderHtml;\n }\n\n this.show('none');\n\n // Subscribe to events\n emitter.on([\n 'before-filtering',\n 'before-populating-filter',\n 'before-page-change',\n 'before-clearing-filters',\n 'before-page-length-change',\n 'before-reset-page',\n 'before-reset-page-length',\n 'before-loading-extensions',\n 'before-loading-themes'],\n ()=> this.show('')\n );\n emitter.on([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n ()=> this.show('none')\n );\n\n this.initialized = true;\n }\n\n show(p) {\n if(!this.isEnabled() /*|| this.loaderDiv.style.display === p*/){\n return;\n }\n\n let displayLoader = () => {\n if(!this.loaderDiv){\n return;\n }\n if(this.onShowLoader && p !== 'none'){\n this.onShowLoader.call(null, this);\n }\n this.loaderDiv.style.display = p;\n if(this.onHideLoader && p === 'none'){\n this.onHideLoader.call(null, this);\n }\n };\n\n let t = p === 'none' ? this.loaderCloseDelay : 1;\n global.setTimeout(displayLoader, t);\n }\n\n destroy() {\n if(!this.initialized){\n return;\n }\n\n let emitter = this.emitter;\n\n Dom.remove(this.loaderDiv);\n this.loaderDiv = null;\n\n // Unsubscribe to events\n emitter.off([\n 'before-filtering',\n 'before-populating-filter',\n 'before-page-change',\n 'before-clearing-filters',\n 'before-page-length-change',\n 'before-reset-page',\n 'before-reset-page-length',\n 'before-loading-extensions',\n 'before-loading-themes'],\n ()=> this.show('')\n );\n emitter.off([\n 'after-filtering',\n 'after-populating-filter',\n 'after-page-change',\n 'after-clearing-filters',\n 'after-page-length-change',\n 'after-reset-page',\n 'after-reset-page-length',\n 'after-loading-extensions',\n 'after-loading-themes'],\n ()=> this.show('none')\n );\n\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 409, + "__docId__": 407, "kind": "variable", "static": true, "variation": null, @@ -7900,7 +7864,7 @@ } }, { - "__docId__": 410, + "__docId__": 408, "kind": "class", "static": true, "variation": null, @@ -7920,7 +7884,7 @@ ] }, { - "__docId__": 411, + "__docId__": 409, "kind": "constructor", "static": false, "variation": null, @@ -7945,7 +7909,7 @@ "generator": false }, { - "__docId__": 412, + "__docId__": 410, "kind": "member", "static": false, "variation": null, @@ -7963,7 +7927,7 @@ } }, { - "__docId__": 413, + "__docId__": 411, "kind": "member", "static": false, "variation": null, @@ -7981,7 +7945,7 @@ } }, { - "__docId__": 414, + "__docId__": 412, "kind": "member", "static": false, "variation": null, @@ -7999,7 +7963,7 @@ } }, { - "__docId__": 415, + "__docId__": 413, "kind": "member", "static": false, "variation": null, @@ -8017,7 +7981,7 @@ } }, { - "__docId__": 416, + "__docId__": 414, "kind": "member", "static": false, "variation": null, @@ -8035,7 +7999,7 @@ } }, { - "__docId__": 417, + "__docId__": 415, "kind": "member", "static": false, "variation": null, @@ -8053,7 +8017,7 @@ } }, { - "__docId__": 418, + "__docId__": 416, "kind": "member", "static": false, "variation": null, @@ -8071,7 +8035,7 @@ } }, { - "__docId__": 419, + "__docId__": 417, "kind": "member", "static": false, "variation": null, @@ -8089,7 +8053,7 @@ } }, { - "__docId__": 420, + "__docId__": 418, "kind": "member", "static": false, "variation": null, @@ -8107,7 +8071,7 @@ } }, { - "__docId__": 421, + "__docId__": 419, "kind": "method", "static": false, "variation": null, @@ -8122,7 +8086,7 @@ "generator": false }, { - "__docId__": 422, + "__docId__": 420, "kind": "member", "static": false, "variation": null, @@ -8140,7 +8104,7 @@ } }, { - "__docId__": 423, + "__docId__": 421, "kind": "member", "static": false, "variation": null, @@ -8158,7 +8122,7 @@ } }, { - "__docId__": 424, + "__docId__": 422, "kind": "method", "static": false, "variation": null, @@ -8180,7 +8144,7 @@ "generator": false }, { - "__docId__": 425, + "__docId__": 423, "kind": "method", "static": false, "variation": null, @@ -8195,7 +8159,7 @@ "generator": false }, { - "__docId__": 426, + "__docId__": 424, "kind": "member", "static": false, "variation": null, @@ -8213,7 +8177,7 @@ } }, { - "__docId__": 427, + "__docId__": 425, "kind": "member", "static": false, "variation": null, @@ -8231,7 +8195,7 @@ } }, { - "__docId__": 428, + "__docId__": 426, "kind": "file", "static": true, "variation": null, @@ -8244,7 +8208,7 @@ "content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\n\nexport class NoResults extends Feature{\n\n /**\n * No results message UI component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'noResults');\n\n //configuration object\n let f = this.config.no_results_message;\n\n this.content = f.content || 'No results';\n this.customContainer = f.custom_container || null;\n this.customContainerId = f.custom_container_id || null;\n this.isExternal = !Types.isEmpty(this.customContainer) ||\n !Types.isEmpty(this.customContainerId);\n this.cssClass = f.css_class || 'no-results';\n\n this.cont = null;\n\n //callback before message is displayed\n this.onBeforeShowMsg = Types.isFn(f.on_before_show_msg) ?\n f.on_before_show_msg : null;\n //callback after message is displayed\n this.onAfterShowMsg = Types.isFn(f.on_after_show_msg) ?\n f.on_after_show_msg : null;\n //callback before message is hidden\n this.onBeforeHideMsg = Types.isFn(f.on_before_hide_msg) ?\n f.on_before_hide_msg : null;\n //callback after message is hidden\n this.onAfterHideMsg = Types.isFn(f.on_after_hide_msg) ?\n f.on_after_hide_msg : null;\n\n this.prfxNoResults = 'nores_';\n }\n\n init(){\n if(this.initialized){\n return;\n }\n let tf = this.tf;\n let target = this.customContainer || Dom.id(this.customContainerId) ||\n tf.tbl;\n\n //container\n let cont = Dom.create('div', ['id', this.prfxNoResults+tf.id]);\n cont.className = this.cssClass;\n cont.innerHTML = this.content;\n\n if(this.isExternal){\n target.appendChild(cont);\n } else {\n target.parentNode.insertBefore(cont, target.nextSibling);\n }\n\n this.cont = cont;\n\n // subscribe to after-filtering event\n this.emitter.on(['after-filtering'], ()=> this.toggle());\n\n this.initialized = true;\n this.hide();\n }\n\n toggle(){\n if(this.tf.nbVisibleRows > 0){\n this.hide();\n } else {\n this.show();\n }\n }\n\n show(){\n if(!this.initialized || !this.isEnabled()){\n return;\n }\n\n if(this.onBeforeShowMsg){\n this.onBeforeShowMsg.call(null, this.tf, this);\n }\n\n this.setWidth();\n this.cont.style.display = 'block';\n\n if(this.onAfterShowMsg){\n this.onAfterShowMsg.call(null, this.tf, this);\n }\n }\n\n hide(){\n if(!this.initialized || !this.isEnabled()){\n return;\n }\n\n if(this.onBeforeHideMsg){\n this.onBeforeHideMsg.call(null, this.tf, this);\n }\n\n this.cont.style.display = 'none';\n\n if(this.onBeforeHideMsg){\n this.onBeforeHideMsg.call(null, this.tf, this);\n }\n }\n\n setWidth(){\n if(!this.initialized || this.isExternal || !this.isEnabled()){\n return;\n }\n if(this.tf.gridLayout){\n let gridLayout = this.tf.feature('gridLayout');\n this.cont.style.width = gridLayout.tblCont.clientWidth + 'px';\n } else {\n this.cont.style.width = this.tf.tbl.clientWidth + 'px';\n }\n\n }\n\n destroy(){\n if(!this.initialized){\n return;\n }\n Dom.remove(this.cont);\n this.cont = null;\n // unsubscribe to after-filtering event\n this.emitter.off(['after-filtering'], ()=> this.toggle());\n\n this.initialized = false;\n }\n}\n" }, { - "__docId__": 429, + "__docId__": 427, "kind": "class", "static": true, "variation": null, @@ -8264,7 +8228,7 @@ ] }, { - "__docId__": 430, + "__docId__": 428, "kind": "constructor", "static": false, "variation": null, @@ -8289,7 +8253,7 @@ "generator": false }, { - "__docId__": 431, + "__docId__": 429, "kind": "member", "static": false, "variation": null, @@ -8307,7 +8271,7 @@ } }, { - "__docId__": 432, + "__docId__": 430, "kind": "member", "static": false, "variation": null, @@ -8325,7 +8289,7 @@ } }, { - "__docId__": 433, + "__docId__": 431, "kind": "member", "static": false, "variation": null, @@ -8343,7 +8307,7 @@ } }, { - "__docId__": 434, + "__docId__": 432, "kind": "member", "static": false, "variation": null, @@ -8361,7 +8325,7 @@ } }, { - "__docId__": 435, + "__docId__": 433, "kind": "member", "static": false, "variation": null, @@ -8379,7 +8343,7 @@ } }, { - "__docId__": 436, + "__docId__": 434, "kind": "member", "static": false, "variation": null, @@ -8397,7 +8361,7 @@ } }, { - "__docId__": 437, + "__docId__": 435, "kind": "member", "static": false, "variation": null, @@ -8415,7 +8379,7 @@ } }, { - "__docId__": 438, + "__docId__": 436, "kind": "member", "static": false, "variation": null, @@ -8433,7 +8397,7 @@ } }, { - "__docId__": 439, + "__docId__": 437, "kind": "member", "static": false, "variation": null, @@ -8451,7 +8415,7 @@ } }, { - "__docId__": 440, + "__docId__": 438, "kind": "member", "static": false, "variation": null, @@ -8469,7 +8433,7 @@ } }, { - "__docId__": 441, + "__docId__": 439, "kind": "member", "static": false, "variation": null, @@ -8487,7 +8451,7 @@ } }, { - "__docId__": 442, + "__docId__": 440, "kind": "method", "static": false, "variation": null, @@ -8502,7 +8466,7 @@ "generator": false }, { - "__docId__": 443, + "__docId__": 441, "kind": "member", "static": false, "variation": null, @@ -8520,7 +8484,7 @@ } }, { - "__docId__": 444, + "__docId__": 442, "kind": "member", "static": false, "variation": null, @@ -8538,7 +8502,7 @@ } }, { - "__docId__": 445, + "__docId__": 443, "kind": "method", "static": false, "variation": null, @@ -8553,7 +8517,7 @@ "generator": false }, { - "__docId__": 446, + "__docId__": 444, "kind": "method", "static": false, "variation": null, @@ -8568,7 +8532,7 @@ "generator": false }, { - "__docId__": 447, + "__docId__": 445, "kind": "method", "static": false, "variation": null, @@ -8583,7 +8547,7 @@ "generator": false }, { - "__docId__": 448, + "__docId__": 446, "kind": "method", "static": false, "variation": null, @@ -8598,7 +8562,7 @@ "generator": false }, { - "__docId__": 449, + "__docId__": 447, "kind": "method", "static": false, "variation": null, @@ -8613,7 +8577,7 @@ "generator": false }, { - "__docId__": 450, + "__docId__": 448, "kind": "member", "static": false, "variation": null, @@ -8631,7 +8595,7 @@ } }, { - "__docId__": 451, + "__docId__": 449, "kind": "member", "static": false, "variation": null, @@ -8649,7 +8613,7 @@ } }, { - "__docId__": 452, + "__docId__": 450, "kind": "file", "static": true, "variation": null, @@ -8662,7 +8626,7 @@ "content": "import {Feature} from './feature';\nimport Dom from '../dom';\nimport Types from '../types';\nimport Str from '../string';\nimport Event from '../event';\n\nexport class Paging extends Feature{\n\n /**\n * Pagination component\n * @param {Object} tf TableFilter instance\n */\n constructor(tf){\n super(tf, 'paging');\n\n // Configuration object\n var f = this.config;\n\n //css class for paging buttons (previous,next,etc.)\n this.btnPageCssClass = f.paging_btn_css_class || 'pgInp';\n //stores paging select element\n this.pagingSlc = null;\n //results per page select element\n this.resultsPerPageSlc = null;\n //id of container element\n this.pagingTgtId = f.paging_target_id || null;\n //defines table paging length\n this.pagingLength = !isNaN(f.paging_length) ? f.paging_length : 10;\n //id of container element\n this.resultsPerPageTgtId = f.results_per_page_target_id || null;\n //css class for paging select element\n this.pgSlcCssClass = f.paging_slc_css_class || 'pgSlc';\n //css class for paging input element\n this.pgInpCssClass = f.paging_inp_css_class || 'pgNbInp';\n //stores results per page text and values\n this.resultsPerPage = f.results_per_page || null;\n //enables/disables results per page drop-down\n this.hasResultsPerPage = Types.isArray(this.resultsPerPage);\n //defines css class for results per page select\n this.resultsSlcCssClass = f.results_slc_css_class || 'rspg';\n //css class for label preceding results per page select\n this.resultsSpanCssClass = f.results_span_css_class || 'rspgSpan';\n //1st row index of current page\n this.startPagingRow = 0;\n //total nb of pages\n this.nbPages = 0;\n //current page nb\n this.currentPageNb = 1;\n //defines next page button text\n this.btnNextPageText = f.btn_next_page_text || '>';\n //defines previous page button text\n this.btnPrevPageText = f.btn_prev_page_text || '<';\n //defines last page button text\n this.btnLastPageText = f.btn_last_page_text || '>|';\n //defines first page button text\n this.btnFirstPageText = f.btn_first_page_text || '|<';\n //defines next page button html\n this.btnNextPageHtml = f.btn_next_page_html ||\n (!tf.enableIcons ? null :\n '');\n //defines previous page button html\n this.btnPrevPageHtml = f.btn_prev_page_html ||\n (!tf.enableIcons ? null :\n '');\n //defines last page button html\n this.btnFirstPageHtml = f.btn_first_page_html ||\n (!tf.enableIcons ? null :\n '');\n //defines previous page button html\n this.btnLastPageHtml = f.btn_last_page_html ||\n (!tf.enableIcons ? null :\n '');\n //defines text preceeding page selector drop-down\n this.pageText = f.page_text || ' Page ';\n //defines text after page selector drop-down\n this.ofText = f.of_text || ' of ';\n //css class for span containing tot nb of pages\n this.nbPgSpanCssClass = f.nb_pages_css_class || 'nbpg';\n //enables/disables paging buttons\n this.hasPagingBtns = f.paging_btns===false ? false : true;\n //defines previous page button html\n this.pageSelectorType = f.page_selector_type || tf.fltTypeSlc;\n //calls function before page is changed\n this.onBeforeChangePage = Types.isFn(f.on_before_change_page) ?\n f.on_before_change_page : null;\n //calls function before page is changed\n this.onAfterChangePage = Types.isFn(f.on_after_change_page) ?\n f.on_after_change_page : null;\n\n //pages select\n this.prfxSlcPages = 'slcPages_';\n //results per page select\n this.prfxSlcResults = 'slcResults_';\n //label preciding results per page select\n this.prfxSlcResultsTxt = 'slcResultsTxt_';\n //span containing next page button\n this.prfxBtnNextSpan = 'btnNextSpan_';\n //span containing previous page button\n this.prfxBtnPrevSpan = 'btnPrevSpan_';\n //span containing last page button\n this.prfxBtnLastSpan = 'btnLastSpan_';\n //span containing first page button\n this.prfxBtnFirstSpan = 'btnFirstSpan_';\n //next button\n this.prfxBtnNext = 'btnNext_';\n //previous button\n this.prfxBtnPrev = 'btnPrev_';\n //last button\n this.prfxBtnLast = 'btnLast_';\n //first button\n this.prfxBtnFirst = 'btnFirst_';\n //span for tot nb pages\n this.prfxPgSpan = 'pgspan_';\n //span preceding pages select (contains 'Page')\n this.prfxPgBeforeSpan = 'pgbeforespan_';\n //span following pages select (contains ' of ')\n this.prfxPgAfterSpan = 'pgafterspan_';\n\n var start_row = tf.refRow;\n var nrows = tf.nbRows;\n //calculates page nb\n this.nbPages = Math.ceil((nrows-start_row)/this.pagingLength);\n\n //Paging elements events\n var o = this;\n // Paging DOM events\n this.evt = {\n slcIndex(){\n return (o.pageSelectorType===tf.fltTypeSlc) ?\n o.pagingSlc.options.selectedIndex :\n parseInt(o.pagingSlc.value, 10)-1;\n },\n nbOpts(){\n return (o.pageSelectorType===tf.fltTypeSlc) ?\n parseInt(o.pagingSlc.options.length, 10)-1 :\n (o.nbPages-1);\n },\n next(){\n var nextIndex = o.evt.slcIndex() < o.evt.nbOpts() ?\n o.evt.slcIndex()+1 : 0;\n o.changePage(nextIndex);\n },\n prev(){\n var prevIndex = o.evt.slcIndex()>0 ?\n o.evt.slcIndex()-1 : o.evt.nbOpts();\n o.changePage(prevIndex);\n },\n last(){\n o.changePage(o.evt.nbOpts());\n },\n first(){\n o.changePage(0);\n },\n _detectKey(e){\n var key = Event.keyCode(e);\n if(key===13){\n if(tf.sorted){\n tf.filter();\n o.changePage(o.evt.slcIndex());\n } else{\n o.changePage();\n }\n this.blur();\n }\n },\n slcPagesChange: null,\n nextEvt: null,\n prevEvt: null,\n lastEvt: null,\n firstEvt: null\n };\n }\n\n /**\n * Initialize DOM elements\n */\n init(){\n var slcPages;\n var tf = this.tf;\n var evt = this.evt;\n\n if(this.initialized){\n return;\n }\n\n // Check resultsPerPage is in expected format and initialise the\n // results per page component\n if(this.hasResultsPerPage){\n if(this.resultsPerPage.length<2){\n this.hasResultsPerPage = false;\n } else {\n this.pagingLength = this.resultsPerPage[1][0];\n this.setResultsPerPage();\n }\n }\n\n evt.slcPagesChange = (event) => {\n var slc = event.target;\n this.changePage(slc.selectedIndex);\n };\n\n // Paging drop-down list selector\n if(this.pageSelectorType === tf.fltTypeSlc){\n slcPages = Dom.create(\n tf.fltTypeSlc, ['id', this.prfxSlcPages+tf.id]);\n slcPages.className = this.pgSlcCssClass;\n Event.add(slcPages, 'change', evt.slcPagesChange);\n }\n\n // Paging input selector\n if(this.pageSelectorType === tf.fltTypeInp){\n slcPages = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxSlcPages+tf.id],\n ['value', this.currentPageNb]\n );\n slcPages.className = this.pgInpCssClass;\n Event.add(slcPages, 'keypress', evt._detectKey);\n }\n\n // btns containers\n var btnNextSpan = Dom.create(\n 'span',['id', this.prfxBtnNextSpan+tf.id]);\n var btnPrevSpan = Dom.create(\n 'span',['id', this.prfxBtnPrevSpan+tf.id]);\n var btnLastSpan = Dom.create(\n 'span',['id', this.prfxBtnLastSpan+tf.id]);\n var btnFirstSpan = Dom.create(\n 'span',['id', this.prfxBtnFirstSpan+tf.id]);\n\n if(this.hasPagingBtns){\n // Next button\n if(!this.btnNextPageHtml){\n var btn_next = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnNext+tf.id],\n ['type', 'button'],\n ['value', this.btnNextPageText],\n ['title', 'Next']\n );\n btn_next.className = this.btnPageCssClass;\n Event.add(btn_next, 'click', evt.next);\n btnNextSpan.appendChild(btn_next);\n } else {\n btnNextSpan.innerHTML = this.btnNextPageHtml;\n Event.add(btnNextSpan, 'click', evt.next);\n }\n // Previous button\n if(!this.btnPrevPageHtml){\n var btn_prev = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnPrev+tf.id],\n ['type', 'button'],\n ['value', this.btnPrevPageText],\n ['title', 'Previous']\n );\n btn_prev.className = this.btnPageCssClass;\n Event.add(btn_prev, 'click', evt.prev);\n btnPrevSpan.appendChild(btn_prev);\n } else {\n btnPrevSpan.innerHTML = this.btnPrevPageHtml;\n Event.add(btnPrevSpan, 'click', evt.prev);\n }\n // Last button\n if(!this.btnLastPageHtml){\n var btn_last = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnLast+tf.id],\n ['type', 'button'],\n ['value', this.btnLastPageText],\n ['title', 'Last']\n );\n btn_last.className = this.btnPageCssClass;\n Event.add(btn_last, 'click', evt.last);\n btnLastSpan.appendChild(btn_last);\n } else {\n btnLastSpan.innerHTML = this.btnLastPageHtml;\n Event.add(btnLastSpan, 'click', evt.last);\n }\n // First button\n if(!this.btnFirstPageHtml){\n var btn_first = Dom.create(\n tf.fltTypeInp,\n ['id', this.prfxBtnFirst+tf.id],\n ['type', 'button'],\n ['value', this.btnFirstPageText],\n ['title', 'First']\n );\n btn_first.className = this.btnPageCssClass;\n Event.add(btn_first, 'click', evt.first);\n btnFirstSpan.appendChild(btn_first);\n } else {\n btnFirstSpan.innerHTML = this.btnFirstPageHtml;\n Event.add(btnFirstSpan, 'click', evt.first);\n }\n }\n\n // paging elements (buttons+drop-down list) are added to defined element\n if(!this.pagingTgtId){\n tf.setToolbar();\n }\n var targetEl = !this.pagingTgtId ? tf.mDiv : Dom.id(this.pagingTgtId);\n targetEl.appendChild(btnFirstSpan);\n targetEl.appendChild(btnPrevSpan);\n\n var pgBeforeSpan = Dom.create(\n 'span',['id', this.prfxPgBeforeSpan+tf.id] );\n pgBeforeSpan.appendChild( Dom.text(this.pageText) );\n pgBeforeSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgBeforeSpan);\n targetEl.appendChild(slcPages);\n var pgAfterSpan = Dom.create(\n 'span',['id', this.prfxPgAfterSpan+tf.id]);\n pgAfterSpan.appendChild( Dom.text(this.ofText) );\n pgAfterSpan.className = this.nbPgSpanCssClass;\n targetEl.appendChild(pgAfterSpan);\n var pgspan = Dom.create( 'span',['id', this.prfxPgSpan+tf.id] );\n pgspan.className = this.nbPgSpanCssClass;\n pgspan.appendChild( Dom.text(' '+this.nbPages+' ') );\n targetEl.appendChild(pgspan);\n targetEl.appendChild(btnNextSpan);\n targetEl.appendChild(btnLastSpan);\n this.pagingSlc = Dom.id(this.prfxSlcPages+tf.id);\n\n if(!tf.rememberGridValues){\n this.setPagingInfo();\n }\n if(!tf.fltGrid){\n tf.validateAllRows();\n this.setPagingInfo(tf.validRowsIndex);\n }\n\n this.emitter.on(['after-filtering'], ()=> this.resetPagingInfo());\n this.emitter.on(['initialized'], ()=> this.resetValues());\n this.emitter.on(['change-page'],\n (tf, pageNumber) => this.setPage(pageNumber));\n this.emitter.on(['change-page-results'],\n (tf, pageLength) => this.changeResultsPerPage(pageLength));\n\n this.initialized = true;\n }\n\n /**\n * Reset paging when filters are already instantiated\n * @param {Boolean} filterTable Execute filtering once paging instanciated\n */\n reset(filterTable=false){\n var tf = this.tf;\n if(this.isEnabled()){\n return;\n }\n this.enable();\n this.init();\n\n if(filterTable){\n tf.filter();\n }\n }\n\n /**\n * Reset paging info from scratch after a filtering process\n */\n resetPagingInfo(){\n this.startPagingRow = 0;\n this.currentPageNb = 1;\n this.setPagingInfo(this.tf.validRowsIndex);\n }\n\n /**\n * Calculate number of pages based on valid rows\n * Refresh paging select according to number of pages\n * @param {Array} validRows Collection of valid rows\n */\n setPagingInfo(validRows){\n var tf = this.tf;\n var mdiv = !this.pagingTgtId ? tf.mDiv : Dom.id(this.pagingTgtId);\n var pgspan = Dom.id(this.prfxPgSpan+tf.id);\n\n //store valid rows indexes\n tf.validRowsIndex = validRows || tf.getValidRows(true);\n\n //calculate nb of pages\n this.nbPages = Math.ceil(tf.validRowsIndex.length/this.pagingLength);\n //refresh page nb span\n pgspan.innerHTML = this.nbPages;\n //select clearing shortcut\n if(this.pageSelectorType === tf.fltTypeSlc){\n this.pagingSlc.innerHTML = '';\n }\n\n if(this.nbPages>0){\n mdiv.style.visibility = 'visible';\n if(this.pageSelectorType === tf.fltTypeSlc){\n for(var z=0; z
diff --git a/docs/file/src/modules/loader.js.html b/docs/file/src/modules/loader.js.html index 15901389..34d7b304 100644 --- a/docs/file/src/modules/loader.js.html +++ b/docs/file/src/modules/loader.js.html @@ -3,7 +3,7 @@ - src/modules/loader.js | tablefilter v0.2.3 API Document + src/modules/loader.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/modules/noResults.js.html b/docs/file/src/modules/noResults.js.html index ef21cb9d..7e1ff210 100644 --- a/docs/file/src/modules/noResults.js.html +++ b/docs/file/src/modules/noResults.js.html @@ -3,7 +3,7 @@ - src/modules/noResults.js | tablefilter v0.2.3 API Document + src/modules/noResults.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/modules/paging.js.html b/docs/file/src/modules/paging.js.html index fa46853d..94015532 100644 --- a/docs/file/src/modules/paging.js.html +++ b/docs/file/src/modules/paging.js.html @@ -3,7 +3,7 @@ - src/modules/paging.js | tablefilter v0.2.3 API Document + src/modules/paging.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/modules/popupFilter.js.html b/docs/file/src/modules/popupFilter.js.html index 34b4d38a..45705769 100644 --- a/docs/file/src/modules/popupFilter.js.html +++ b/docs/file/src/modules/popupFilter.js.html @@ -3,7 +3,7 @@ - src/modules/popupFilter.js | tablefilter v0.2.3 API Document + src/modules/popupFilter.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/modules/rowsCounter.js.html b/docs/file/src/modules/rowsCounter.js.html index e44dd6ef..9c836fb6 100644 --- a/docs/file/src/modules/rowsCounter.js.html +++ b/docs/file/src/modules/rowsCounter.js.html @@ -3,7 +3,7 @@ - src/modules/rowsCounter.js | tablefilter v0.2.3 API Document + src/modules/rowsCounter.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/modules/state.js.html b/docs/file/src/modules/state.js.html index db771fea..cf7defd1 100644 --- a/docs/file/src/modules/state.js.html +++ b/docs/file/src/modules/state.js.html @@ -3,7 +3,7 @@ - src/modules/state.js | tablefilter v0.2.3 API Document + src/modules/state.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/modules/statusBar.js.html b/docs/file/src/modules/statusBar.js.html index 50f84acc..6deefb8a 100644 --- a/docs/file/src/modules/statusBar.js.html +++ b/docs/file/src/modules/statusBar.js.html @@ -3,7 +3,7 @@ - src/modules/statusBar.js | tablefilter v0.2.3 API Document + src/modules/statusBar.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/modules/store.js.html b/docs/file/src/modules/store.js.html index f9ee9c70..a2d3ab9b 100644 --- a/docs/file/src/modules/store.js.html +++ b/docs/file/src/modules/store.js.html @@ -3,7 +3,7 @@ - src/modules/store.js | tablefilter v0.2.3 API Document + src/modules/store.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/sort.js.html b/docs/file/src/sort.js.html index 229d197b..ef71de9a 100644 --- a/docs/file/src/sort.js.html +++ b/docs/file/src/sort.js.html @@ -3,7 +3,7 @@ - src/sort.js | tablefilter v0.2.3 API Document + src/sort.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/string.js.html b/docs/file/src/string.js.html index 694f49f1..77530ff6 100644 --- a/docs/file/src/string.js.html +++ b/docs/file/src/string.js.html @@ -3,7 +3,7 @@ - src/string.js | tablefilter v0.2.3 API Document + src/string.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/tablefilter.js.html b/docs/file/src/tablefilter.js.html index 5924dff1..7a2f9610 100644 --- a/docs/file/src/tablefilter.js.html +++ b/docs/file/src/tablefilter.js.html @@ -3,7 +3,7 @@ - src/tablefilter.js | tablefilter v0.2.3 API Document + src/tablefilter.js | tablefilter v0.2.4 API Document diff --git a/docs/file/src/types.js.html b/docs/file/src/types.js.html index 34247ce1..d2cad2db 100644 --- a/docs/file/src/types.js.html +++ b/docs/file/src/types.js.html @@ -3,7 +3,7 @@ - src/types.js | tablefilter v0.2.3 API Document + src/types.js | tablefilter v0.2.4 API Document diff --git a/docs/identifiers.html b/docs/identifiers.html index 550a431c..66a84212 100644 --- a/docs/identifiers.html +++ b/docs/identifiers.html @@ -3,7 +3,7 @@ - Index | tablefilter v0.2.3 API Document + Index | tablefilter v0.2.4 API Document diff --git a/docs/index.html b/docs/index.html index a8e84f09..cad5cd0c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,7 +3,7 @@ - tablefilter v0.2.3 API Document + tablefilter v0.2.4 API Document diff --git a/docs/package.json b/docs/package.json index d9942963..2530d179 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "tablefilter", - "version": "0.2.3", + "version": "0.2.4", "description": "A Javascript library making HTML tables filterable and a bit more", "license": "MIT", "author": { diff --git a/docs/script/search_index.js b/docs/script/search_index.js index 64bfe1b5..59194cad 100644 --- a/docs/script/search_index.js +++ b/docs/script/search_index.js @@ -2309,12 +2309,6 @@ window.esdocSearchIndex = [ "src/modules/highlightKeywords.js~HighlightKeyword#highlightCssClass", "member" ], - [ - "src/modules/highlightkeywords.js~highlightkeyword#highlightednodes", - "class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-member-highlightedNodes", - "src/modules/highlightKeywords.js~HighlightKeyword#highlightedNodes", - "member" - ], [ "src/modules/highlightkeywords.js~highlightkeyword#init", "class/src/modules/highlightKeywords.js~HighlightKeyword.html#instance-method-init", diff --git a/docs/source.html b/docs/source.html index 7756a967..1509fee7 100644 --- a/docs/source.html +++ b/docs/source.html @@ -3,7 +3,7 @@ - Source | tablefilter v0.2.3 API Document + Source | tablefilter v0.2.4 API Document @@ -61,7 +61,7 @@ -

Source 191/738

+

Source 191/737

@@ -82,7 +82,7 @@ - + @@ -90,7 +90,7 @@ - + @@ -98,7 +98,7 @@ - + @@ -106,7 +106,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -122,7 +122,7 @@ - + @@ -130,7 +130,7 @@ - + @@ -138,7 +138,7 @@ - + @@ -146,7 +146,7 @@ - + @@ -154,7 +154,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -170,7 +170,7 @@ - + @@ -178,7 +178,7 @@ - + @@ -186,7 +186,7 @@ - + @@ -194,7 +194,7 @@ - + @@ -202,7 +202,7 @@ - + @@ -210,7 +210,7 @@ - + @@ -218,7 +218,7 @@ - + @@ -226,7 +226,7 @@ - + @@ -234,7 +234,7 @@ - + @@ -243,7 +243,7 @@ - + @@ -251,15 +251,15 @@ - + - + - - - - + + + + @@ -267,7 +267,7 @@ - + @@ -275,7 +275,7 @@ - + @@ -283,7 +283,7 @@ - + @@ -291,7 +291,7 @@ - + @@ -299,7 +299,7 @@ - + @@ -307,7 +307,7 @@ - + @@ -315,7 +315,7 @@ - + @@ -323,7 +323,7 @@ - + @@ -331,7 +331,7 @@ - + @@ -339,7 +339,7 @@ - + @@ -347,7 +347,7 @@ - + @@ -355,7 +355,7 @@ - +
- 379 byte 172016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/cookie.js- 1455 byte 582016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/date.js- 5675 byte 1722016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/dom.js- 4442 byte 1652016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/emitter.js83 %5/6 1263 byte 502016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/event.js- 1299 byte 532016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/extensions/advancedGrid/adapterEzEditTable.js29 %5/17 17864 byte 4472016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/extensions/advancedGrid/advancedGrid.js- 90 byte 22016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/extensions/colOps/colOps.js22 %2/9 12536 byte 3232016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/extensions/colsVisibility/colsVisibility.js17 %10/58 17261 byte 5202016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/extensions/filtersVisibility/filtersVisibility.js15 %5/33 5731 byte 1842016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/extensions/sort/adapterSortabletable.js10 %3/28 13392 byte 4132016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/extensions/sort/sort.js- 198 byte 82016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/helpers.js- 433 byte 232016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/alternateRows.js54 %6/11 3406 byte 1292016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/checkList.js26 %7/26 16293 byte 4672016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/clearButton.js25 %3/12 2613 byte 942016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/dropdown.js31 %6/19 12253 byte 3712016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/feature.js0 %0/14 649 byte 382016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/gridLayout.js10 %3/29 12048 byte 3492016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/hash.js63 %7/11 2628 byte 1082016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/help.js15 %3/19 5369 byte 1552016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/highlightKeywords.jssrc/modules/highlightKeywords.js HighlightKeyword36 %4/114631 byte1382016-03-02 07:44:13 (UTC)40 %4/103998 byte1232016-03-05 01:27:15 (UTC)
src/modules/loader.js6 %1/15 4560 byte 1572016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/noResults.js5 %1/20 3673 byte 1352016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/paging.js25 %16/64 26667 byte 7812016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/popupFilter.js35 %10/28 8999 byte 2762016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/rowsCounter.js5 %1/18 4925 byte 1482016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/state.js42 %9/21 5001 byte 1932016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/statusBar.js3 %1/29 7575 byte 2222016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/modules/store.js47 %8/17 3840 byte 1462016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/sort.js- 295 byte 152016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/string.js- 1495 byte 612016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/tablefilter.js33 %75/223 79051 byte 23072016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
src/types.js- 1641 byte 802016-03-02 07:44:13 (UTC)2016-03-05 01:27:15 (UTC)
diff --git a/docs/variable/index.html b/docs/variable/index.html index e7f35e74..5dc74b31 100644 --- a/docs/variable/index.html +++ b/docs/variable/index.html @@ -3,7 +3,7 @@ - Variable | tablefilter v0.2.3 API Document + Variable | tablefilter v0.2.4 API Document