enyojs/moonstone — pull request #1156 by aarontam (2014-02-28 21:36:37+00:00)
Title: BHV-737: Reset header marquee after closing accordion. Stop header marquee when opening pickers.

Issue
-------
For the case where the pointer remains hovered over the header, the header marquee does not restart after closing a `moon.Accordion` control. Additionally, the header marquee does not stop when a `moon.ExpandablePicker`, `moon.ExpandableIntegerPicker`, `moon.ExpandableInput`, `moon.DatePicker`, or `moon.TimePicker` are opened.

Fix
----
A `restartHeaderMarquee` method has been added that is called when the control is deactivated. This logic was moved from `openChanged` to `activeChanged` so that the marquee methods would be called after a `showingChanged` via `setOpen` would trigger a marquee reset. Additionally, any `resetMarquee` job is stopped when `stopMarquee` is called.

Notes
-------
I didn't observe anything broken in the samples, but I'm not sure if there are any specific use-cases where stopping the `resetMarquee` job in `stopMarquee` would cause a side effect, so I'd appreciate extra review in this area.

Enyo-DCO-1.1-Signed-off-by: Aaron Tam