From 9efa46ae640cde17487c341daa9a75c0bd79da02 Mon Sep 17 00:00:00 2001 From: jankuca Date: Mon, 23 Sep 2013 11:24:42 -0700 Subject: feat(ngRepeat): use block separator comments Issue: multi-elements ng-repeat (ng-repeat-start, ng-repeat-end) can contain elements with a trancluding directive. This directive changes content of the row (template) and ng-repeat does not work correctly (when removing/moving rows), because ng-repeat works with the original template (elements). This changes ng-repeat behavior to traverse the DOM to find current elements everytime we are moving/removing rows (if the template has multiple elements). Closes #3104 --- test/ng/directive/ngClassSpec.js | 10 +-- test/ng/directive/ngRepeatSpec.js | 163 ++++++++++++++++++++++++++++++++++---- 2 files changed, 152 insertions(+), 21 deletions(-) (limited to 'test/ng') diff --git a/test/ng/directive/ngClassSpec.js b/test/ng/directive/ngClassSpec.js index f0989f4a..a788e452 100644 --- a/test/ng/directive/ngClassSpec.js +++ b/test/ng/directive/ngClassSpec.js @@ -166,7 +166,7 @@ describe('ngClass', function() { element = $compile('