I'm running this snippet of jQuery to remove all event listeners from my ui-router based angular app, but it doesn't seem to do anything? Is it an illegal operation?
$rootScope
.$on('$stateChangeStart',
function(event, toState, toParams, fromState, fromParams){
console.log("Going to remove event listeners"); // this fires
$(document).off();
});