From 4cbe49e4bfecdb184f2197d0def4c09079ff94a7 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Sat, 2 May 2015 10:09:16 +0100 Subject: [PATCH] Highlighter#draw: correct sense of _local.highlights test --- src/ui/highlighter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/highlighter.js b/src/ui/highlighter.js index a4ebb5ce5..00f72c094 100644 --- a/src/ui/highlighter.js +++ b/src/ui/highlighter.js @@ -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 = []; }