angular/angular.js — pull request #6784 by andersekdahl (2014-03-21 07:57:12+00:00)
Title: refactor($rootScope): add warnings when emitting/broadcasting on a destroyed scope

When a scope is destroyed, all event listeners gets unregistered, and the connection to
the parent/child scopes are removed. Because of this, no one is noticed of the event.
$emit and $broadcast now logs a warning when trying to emit or broadcast an event on
a destroyed scope.

Closes #6768