angular/angular.js — pull request #964 by maxmart (2012-05-17 14:52:00+00:00)
Title: Update: Fix for Issue #912 ($position in repeat directive can't be both first and last at the same time) 

Same pull request as #928 but it's from a separate branch, so future commits that I do to my master won't affect it. See #928 for more info.

Sorry for the mess.

> Fix for issue #912 (https://github.com/angular/angular.js/issues/912)
>
> Implementation of my suggested fix where three boolean values $first, $middle and $last replaces the $position variable. I also added a test case for single item lists.