diff options
| author | Brian Ford | 2013-10-30 14:51:52 -0700 |
|---|---|---|
| committer | Brian Ford | 2013-10-30 16:21:02 -0700 |
| commit | 6578bd0c82b5cbb0cd6f6fea0787fb7ce820d4e7 (patch) | |
| tree | 01a0b7dc5af66d117adbe438b6020c3ae1a2abff /src/ng | |
| parent | e19067c9bbac3c3bb450c80f73eb5518bd0db1a1 (diff) | |
| download | angular.js-6578bd0c82b5cbb0cd6f6fea0787fb7ce820d4e7.tar.bz2 | |
chore: move getBlockElements to Angular.js
Diffstat (limited to 'src/ng')
| -rw-r--r-- | src/ng/directive/ngIf.js | 18 | ||||
| -rw-r--r-- | src/ng/directive/ngRepeat.js | 17 |
2 files changed, 0 insertions, 35 deletions
diff --git a/src/ng/directive/ngIf.js b/src/ng/directive/ngIf.js index 662f3f32..3f56449f 100644 --- a/src/ng/directive/ngIf.js +++ b/src/ng/directive/ngIf.js @@ -108,22 +108,4 @@ var ngIfDirective = ['$animate', function($animate) { }; } }; - - // TODO(bford): this helper was copypasta'd from ngRepeat - function getBlockElements(block) { - if (block.startNode === block.endNode) { - return jqLite(block.startNode); - } - - var element = block.startNode; - var elements = [element]; - - do { - element = element.nextSibling; - if (!element) break; - elements.push(element); - } while (element !== block.endNode); - - return jqLite(elements); - } }]; diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index e3ff1b8e..ee0faf23 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -393,22 +393,5 @@ var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) { }; } }; - - function getBlockElements(block) { - if (block.startNode === block.endNode) { - return jqLite(block.startNode); - } - - var element = block.startNode; - var elements = [element]; - - do { - element = element.nextSibling; - if (!element) break; - elements.push(element); - } while (element !== block.endNode); - - return jqLite(elements); - } }]; |
