enyojs/enyo — pull request #818 by sbcho (2014-07-31 21:51:47+00:00)
Title: ANG-12114: fix index of pages update rountine in VerticalDelegate.js

## Issue
Index of pages in DataList have a same value in certain case.

## Cause
refresh() function has a index setting routine according to pageCount value.
But they can not handle a condition like blew.

* refresh() function
(firstIndex > pageCount && secondIndex > pageCount) ==> OK
(firstIndex > pageCount && secondIndex < pageCount) ==> OK
(firstIndex < pageCount && secondIndex > pageCount) ==> Not Good(result : firstIndex == secondIndex)
(firstIndex < pageCount && secondIndex < pageCount) ==> OK

* modelsAdded() function
(firstIndex === 1 && secondIndex === 0) ==> Not Good(result : firstIndex = 1, secondIndex =1)

## Fix
Add one line which can handle those condition.

Enyo-DCO-1.1-Signed-off-by: Sungbae Cho sb.cho@lge.com