From e79540fbba44893d6d5b190deeac4b712a0731bb Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Wed, 13 May 2015 13:05:05 -0400 Subject: [PATCH] Cleanup --- .../include-partial.directive.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/awx/ui/static/js/shared/include-partial/include-partial.directive.js b/awx/ui/static/js/shared/include-partial/include-partial.directive.js index 91e2f351f2..97a9b88ea9 100644 --- a/awx/ui/static/js/shared/include-partial/include-partial.directive.js +++ b/awx/ui/static/js/shared/include-partial/include-partial.directive.js @@ -49,16 +49,16 @@ export default function() { return { restrict: 'E', - link: function(scope, linkElement) { - var contents = Array.prototype.slice.apply(linkElement.parent().contents()); - var commentNode = contents.filter(function(node) { - // This selects a comment node - return node.nodeType === 8; - }); + link: function(scope, linkElement) { + var contents = Array.prototype.slice.apply(linkElement.parent().contents()); + var commentNode = contents.filter(function(node) { + // This selects a comment node + return node.nodeType === 8; + }); - var children = linkElement.children(); - $(commentNode[0]).nextAll().remove(); - $(commentNode[0]).after(children); - } + var children = linkElement.children(); + $(commentNode[0]).nextAll().remove(); + $(commentNode[0]).after(children); + } }; }