Skip to content

Commit

Permalink
Highlighter#draw: correct sense of _local.highlights test
Browse files Browse the repository at this point in the history
  • Loading branch information
wjt committed May 3, 2015
1 parent 3ebfb0b commit 4cbe49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/highlighter.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Highlighter.prototype.draw = function (annotation) {
annotation._local = {};
}
var hasHighlights = (typeof annotation._local.highlights !== 'undefined' &&
annotation._local.highlights === null);
annotation._local.highlights !== null);
if (!hasHighlights) {
annotation._local.highlights = [];
}
Expand Down

0 comments on commit 4cbe49e

Please sign in to comment.