Browse Source

Fix coding style in web/pdf_find_bar.js

Jonas Jenwald 11 years ago
parent
commit
2e09f14a80
  1. 8
      web/pdf_find_bar.js

8
web/pdf_find_bar.js

@ -26,7 +26,6 @@
* searching is done by PDFFindController * searching is done by PDFFindController
*/ */
var PDFFindBar = { var PDFFindBar = {
opened: false, opened: false,
bar: null, bar: null,
toggleButton: null, toggleButton: null,
@ -40,7 +39,7 @@ var PDFFindBar = {
initialize: function(options) { initialize: function(options) {
if(typeof PDFFindController === 'undefined' || PDFFindController === null) { if(typeof PDFFindController === 'undefined' || PDFFindController === null) {
throw 'PDFFindBar cannot be initialized ' + throw 'PDFFindBar cannot be initialized ' +
'without a PDFFindController instance.'; 'without a PDFFindController instance.';
} }
@ -155,8 +154,9 @@ var PDFFindBar = {
}, },
close: function() { close: function() {
if (!this.opened) return; if (!this.opened) {
return;
}
this.opened = false; this.opened = false;
this.toggleButton.classList.remove('toggled'); this.toggleButton.classList.remove('toggled');
this.bar.classList.add('hidden'); this.bar.classList.add('hidden');

Loading…
Cancel
Save