We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e269e commit d476407Copy full SHA for d476407
src/plugin/pagebreaks.js
@@ -36,7 +36,7 @@ Worker.prototype.toContainer = function toContainer() {
36
var self = this;
37
['before', 'after', 'avoid'].forEach(function(key) {
38
var all = mode.avoidAll && key === 'avoid';
39
- select[key] = all ? [] : (undefined === self.opt.pageBreak[key] ? [] : [].concat(self.opt.pageBreak[key]));
+ select[key] = all ? [] : [].concat(self.opt.pageBreak[key] || []);
40
if (select[key].length > 0) {
41
select[key] = Array.prototype.slice.call(
42
root.querySelectorAll(select[key].join(', ')));
0 commit comments