aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets.js
diff options
context:
space:
mode:
authorVojta Jina2011-11-04 17:15:03 -0700
committerIgor Minar2011-11-30 11:17:25 -0500
commitb9707d910e8dd354a2f684588c1e7d83c5f88b8a (patch)
tree2c6d1d375bad6785c16c1e4c00b60ad826c2c888 /src/widgets.js
parent5bbd64ac65a89f43ce30a948fc0e0f5442cacb1e (diff)
downloadangular.js-b9707d910e8dd354a2f684588c1e7d83c5f88b8a.tar.bz2
style(): get rid off some jsl warnings
Diffstat (limited to 'src/widgets.js')
-rw-r--r--src/widgets.js6
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){