mozilla/pdf.js — pull request #3824 by Snuffleupagus (2013-10-17 22:31:38+00:00)
Title: A few small tweaks of the SecondaryToolbar code

This patch makes the following small changes to the SecondaryToolbar code:
* Passes in a reference to `PresentationMode`, instead of using the global.
* Removes the `isOpen` getter, since it should be sufficient to call just check `SecondaryToolbar.opened`. This is also analogous to, for example the: `PDFFindBar` and `PasswordPrompt`.
* Adds a check that the `buttonContainer` is defined when `setMaxHeight` is called. This prevents an error when reloading the viewer in "Responsive Design View" in Firefox.