From e0ca388981bc1eaf425b041d9285c520b72fcebd Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Tue, 20 Jun 2017 20:52:45 -0700 Subject: [PATCH] refactor($compile): remove workaround for chrome bug fixed in v50 --- src/ng/compile.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index ea25e0c2e672..b05014a5804d 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -2549,17 +2549,6 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { compileNode = $compileNode[0]; replaceWith(jqCollection, sliceArgs($template), compileNode); - // Support: Chrome < 50 - // https://github.com/angular/angular.js/issues/14041 - - // In the versions of V8 prior to Chrome 50, the document fragment that is created - // in the `replaceWith` function is improperly garbage collected despite still - // being referenced by the `parentNode` property of all of the child nodes. By adding - // a reference to the fragment via a different property, we can avoid that incorrect - // behavior. - // TODO: remove this line after Chrome 50 has been released - $template[0].$$parentNode = $template[0].parentNode; - childTranscludeFn = compilationGenerator(mightHaveMultipleTransclusionError, $template, transcludeFn, terminalPriority, replaceDirective && replaceDirective.name, { // Don't pass in: