File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ var ngRepeatDirective = ngDirective({
96
96
// Same as lastOrder but it has the current state. It will become the
97
97
// lastOrder on the next iteration.
98
98
nextOrder = new HashQueueMap ( ) ,
99
- arrayLength ,
99
+ arrayBound ,
100
100
childScope ,
101
101
key , value , // key/value of iteration
102
102
array ,
@@ -117,7 +117,7 @@ var ngRepeatDirective = ngDirective({
117
117
array = collection || [ ] ;
118
118
}
119
119
120
- arrayLength = array . length ;
120
+ arrayBound = array . length - 1 ;
121
121
122
122
// we are not using forEach for perf reasons (trying to avoid #call)
123
123
for ( index = 0 , length = array . length ; index < length ; index ++ ) {
@@ -154,7 +154,7 @@ var ngRepeatDirective = ngDirective({
154
154
childScope . $index = index ;
155
155
156
156
childScope . $first = ( index === 0 ) ;
157
- childScope . $last = ( index === ( arrayLength - 1 ) ) ;
157
+ childScope . $last = ( index === arrayBound ) ;
158
158
childScope . $middle = ! ( childScope . $first || childScope . $last ) ;
159
159
160
160
if ( ! last ) {
You can’t perform that action at this time.
0 commit comments