enyo.Panels.setIndex() can now respect values beyond the immediate scope of the current panel indexes, if `wrap: true` is present. Running `enyo.Panels.setIndex(-2)` will now set the index to the second-to-last panel on the getPanels() stack, if `wrap: true` is set. If not, it will simply set the index to 0 (zero), clamping, as it did previously.
Handle wrapping solely inside the clamp() method.
Enyo-DCO-1.1-Signed-off-by: Blake Stephens <blake.stephens@lge.com>
Simplifying setIndex() back to the way it was.
Enyo-DCO-1.1-Signed-off-by: Blake Stephens <blake.stephens@lge.com>
Merge pull request #76 from enyojs/new-setIndexWrap-blakestephens

Panels.setIndex() can wrap around, if `wrap` is enabled

Reviewed-By: Ben Combee (ben.combee@lge.com)