Don't put local event handlers on $rootScope

Fixes #2872