angular/angular.js — pull request #8359 by rodyhaddad (2014-07-27 06:01:57+00:00)
Title: fix(jqLite): fix regression where mutating the dom tree on a event breaks jqLite.remove

012ab1f8745c8985d3f132c2dfa8fd84e7dc7041 introduced a regression where if a user's `$destroy` event modified the descendant DOM tree, `jqLite.remove` would break.
This is because it uses `getElementsByTagName` and caches the length of the returned live NodeList

cc @ggoodman