Works for me. Only thing that worries me is if some error occurs and
_destroy() isn't called. This would result in the period selector being hidden, which could be an annoying bug to track down.
@diosmosis would it be better like it's done in the real time map:
Huh, I would expect that might cause problems w/ this change actually, since I think the event is never removed from
I actually didn't have problems with that while testing. Guess the
piwikPageChange event is triggered before the widgets are created or destroyed.
I'll try to implement something else, that simplifies both implementations....
@diosmosis tried to improve & simplify the code. Could you have another look?