enyojs/moonstone — pull request #1344 by DavidUM (2014-06-02 12:55:33+00:00)
Title: BHV-754 Close panels if sequential left input is occurred on index 1.

Currently, sequential key inputs during panels transition are queuing.
And last key input will be conducted after transition is finished.

But specific case, last key input is ignored.

To reproduce this case, plz open AlwaysViewingPanelsWithVideoSample.html
If we give 2 times LEFT key input from index 2,
it will call two times setIndex() and queueIndex is set properly.
However if we starting from index 1, second LEFT key calls setIndex() but it stayed 0 panel.
Because clamp() does not allow that panels.index become smaller than 0.

To resolve this matter, I enforced condition statement in setIndex()

Enyo-DCO-1.1-Signed-off-by: David Um david.um@lge.com