Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 263be6b

Browse files
committed
style(ngRepeat) eslint does not like unused functions and requires comparison operators with type.
1 parent 2331c42 commit 263be6b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ng/directive/ngRepeat.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ var ngRepeatDirective = ['$parse', '$animate', '$compile', function($parse, $ani
339339
scope.$odd = !(scope.$even = (index & 1) === 0);
340340
};
341341

342-
var getBlockStart = function(block) {
343-
return block.clone[0];
344-
};
342+
// var getBlockStart = function(block) {
343+
// return block.clone[0];
344+
// };
345345

346346
var getBlockEnd = function(block) {
347347
return block.clone[block.clone.length - 1];

test/ng/directive/ngRepeatSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ describe('ngRepeat animations', function() {
14891489

14901490
while ($animate.queue.length) {
14911491
item = $animate.queue.shift();
1492-
if (item.event == 'leave') {
1492+
if (item.event === 'leave') {
14931493
break;
14941494
}
14951495
}

0 commit comments

Comments
 (0)