amend(collectionRepeat): don't render an extra item at the end

Closes #2027
This commit is contained in:
Andrew
2014-08-20 10:53:38 -06:00
parent 04812a2da9
commit beecc6274e
2 changed files with 17 additions and 13 deletions

View File

@@ -81,7 +81,7 @@ function($cacheFactory, $parse, $rootScope) {
attachItemAtIndex: function(index) {
if (index < this.dataStartIndex) {
return this.beforeSiblings[index];
} else if (index > this.data.length) {
} else if (index > this.data.length - 1) {
return this.afterSiblings[index - this.data.length - this.dataStartIndex];
}