diff options
Diffstat (limited to 'src/widgets.js')
| -rw-r--r-- | src/widgets.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets.js b/src/widgets.js index 227ab167..861e61bf 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -434,9 +434,9 @@ angularWidget('@ng:repeat', function(expression, element){ childScope[valueIdent] = value; if (keyIdent) childScope[keyIdent] = key; childScope.$index = index; - childScope.$position = index == 0 - ? 'first' - : (index == collectionLength - 1 ? 'last' : 'middle'); + childScope.$position = index === 0 ? + 'first' : + (index == collectionLength - 1 ? 'last' : 'middle'); if (!last) { linker(childScope, function(clone){ |
