mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery event: Removed a needless if (old code)
This commit is contained in:
parent
0c1653249a
commit
42c99472cc
@ -163,7 +163,8 @@ jQuery.event = {
|
||||
}
|
||||
},
|
||||
|
||||
trigger: function( event, data, elem, bubbling /* internal */ ) {
|
||||
// bubbling is internal
|
||||
trigger: function( event, data, elem, bubbling ) {
|
||||
// Event object or event type
|
||||
var type = event.type || event;
|
||||
|
||||
@ -199,8 +200,6 @@ jQuery.event = {
|
||||
if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
|
||||
return undefined;
|
||||
|
||||
// AT_TARGET phase (not bubbling)
|
||||
if( !bubbling ){
|
||||
// Clean up in case it is reused
|
||||
event.result = undefined;
|
||||
event.target = elem;
|
||||
@ -209,7 +208,6 @@ jQuery.event = {
|
||||
data = jQuery.makeArray(data);
|
||||
data.unshift( event );
|
||||
}
|
||||
}
|
||||
|
||||
event.currentTarget = elem;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user