angular/angular.js — pull request #8253 by jbedard (2014-07-18 03:37:57+00:00)
Title: fix($compile): updating the jQuery .context when it is replaced

This allows replaced DOM nodes to be GCed when using jQuery. The issue is pretty minor and the jQuery .context might be removed in the future (see https://api.jquery.com/context/), but the fix is pretty simple.

Fixes #7900