Changed $.sub internals to match sub naming, added some more spacing in some areas for readability

This commit is contained in:
Timmy Willison 2011-02-06 19:34:57 -05:00
parent d6fbbe1080
commit 82626799ca
3 changed files with 27 additions and 29 deletions

View file

@ -294,11 +294,9 @@ jQuery.event = {
}
},
// bubbling is internal
trigger: function( event, data, elem /*, bubbling */ ) {
trigger: function( event, data, elem, bubbling /* For Internal Use Only */ ) {
// Event object or event type
var type = event.type || event,
bubbling = arguments[3];
var type = event.type || event;
if ( !bubbling ) {
event = typeof event === "object" ?