angular/angular.js — pull request #2474 by piranha (2013-04-22 12:21:41+00:00)
Title: More jQuery-like jqlite.triggerHandler

Old version did not work with AngularUI's ui-event, since instead of
an event name it passes object `{type: 'event-name'}`. jQuery itself
tries to get `type` and then falls back to whole object (which, it
seems, can be a string). So this change matches jQuery behavior.