From 2e09f14a80b26ff9f14a099f86599048ad6625ea Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 8 Mar 2014 23:55:05 +0100 Subject: [PATCH] Fix coding style in web/pdf_find_bar.js --- web/pdf_find_bar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/pdf_find_bar.js b/web/pdf_find_bar.js index 2054c6d18..a0e1e866c 100644 --- a/web/pdf_find_bar.js +++ b/web/pdf_find_bar.js @@ -26,7 +26,6 @@ * searching is done by PDFFindController */ var PDFFindBar = { - opened: false, bar: null, toggleButton: null, @@ -40,7 +39,7 @@ var PDFFindBar = { initialize: function(options) { if(typeof PDFFindController === 'undefined' || PDFFindController === null) { - throw 'PDFFindBar cannot be initialized ' + + throw 'PDFFindBar cannot be initialized ' + 'without a PDFFindController instance.'; } @@ -155,8 +154,9 @@ var PDFFindBar = { }, close: function() { - if (!this.opened) return; - + if (!this.opened) { + return; + } this.opened = false; this.toggleButton.classList.remove('toggled'); this.bar.classList.add('hidden');