Skip to content

Commit 903c44e

Browse files
committed
Highlighter#draw: correct sense of _local.highlights test
1 parent 426ee26 commit 903c44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/highlighter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Highlighter.prototype.draw = function (annotation) {
140140
annotation._local = {};
141141
}
142142
var hasHighlights = (typeof annotation._local.highlights !== 'undefined' &&
143-
annotation._local.highlights === null);
143+
annotation._local.highlights !== null);
144144
if (!hasHighlights) {
145145
annotation._local.highlights = [];
146146
}

0 commit comments

Comments
 (0)