Skip to content

Commit

Permalink
Remove goal of avoiding the loop through all els
Browse files Browse the repository at this point in the history
  • Loading branch information
eKoopmans committed Sep 15, 2018
1 parent 6fe9755 commit a1eee56
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/plugin/pagebreaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ Worker.prototype.toContainer = function toContainer() {
legacyEls = Array.prototype.slice.call(legacyEls);

// Loop through all elements.
// TODO: Only loop through all if css option is chosen?
var els = root.querySelectorAll('*');
Array.prototype.forEach.call(els, function pageBreak_loop(el) {
// Setup pagebreak rules based on legacy and avoidAll modes.
Expand Down

0 comments on commit a1eee56

Please sign in to comment.