Added method to indicate if the popup is open or closed.
Fixed whitespace.
Fixed whitespace.

Second crack at fixing the whitespace.
Simplified method.

On advice from mourner.
Merge pull request #2547 from shortspider/popup.isOpen

Added method to indicate if the popup is open or closed.