For short-lived popups that are closed via push, the call-back from the visibility change on the client side can lead to a loop where the popup is toggling its visibility forever.

For popups that cannot be closed by clicking on the outside, the client-side visibility change does not do anything useful, since the listeners are notified from the server side change.This fix ignores that client-side RPC call for that condition and prevents the loop from occurring.
revert cf9c9762f58a9f0ebfe25d6babd0c4e2e641d21b
Notify the server side about visibility changes only if the visibility was changed on the client side. This prevents an infinite open/close loop for short lived popups when using push.
Merge pull request #12 from ingokegel/master

Fix for infinite open/close loop for short lived popups when using push