Added code to constrain the index in Panels getActive function within the array of panels. This was needed in the case of a wrapped set of panels & allows the function to always return the expected panel rather than undefined in the case of wrapped panels.
Added code to constrain the index in Panels getActive function within the array of panels. This was needed in the case of a wrapped set of panels & allows the function to always return the expected panel rather than undefined in the case of wrapped panels.

Enyo-DCO-1.0-Signed-off-by: Steven Feaster Steven.Feaster@palm.com

enyojs/layout