code: function handle(event)
          {
              var scheduler = schedule[event.type];
  
              if (angular.isDefined(scheduler))
              {
                  for (var i = 0, length = scheduler.length; i < length; i++)
                  {
                      var handler = scheduler[i];
  
                      if (angular.isDefined(handler) && angular.isDefined(handler.callback) && angular.isFunction(handler.callback))
                      {
                          handler.callback(event);
  
                          if (event.isPropagationStopped())
                          {
                              break;
                          }
                      }
                  }
              }
          }
docs: //////////