jquery event: Misc, removed a commented line from last commit.
This commit is contained in:
parent
b2583a7526
commit
303ad32c74
1 changed files with 2 additions and 6 deletions
|
@ -213,21 +213,17 @@ jQuery.event = {
|
||||||
|
|
||||||
event.currentTarget = elem;
|
event.currentTarget = elem;
|
||||||
|
|
||||||
var fn = jQuery.isFunction( elem[ type ] );
|
|
||||||
|
|
||||||
// Trigger the event, it is assumed that "handle" is a function
|
// Trigger the event, it is assumed that "handle" is a function
|
||||||
var handle = jQuery.data(elem, "handle");
|
var handle = jQuery.data(elem, "handle");
|
||||||
if ( handle )
|
if ( handle )
|
||||||
handle.apply( elem, data );
|
handle.apply( elem, data );
|
||||||
|
|
||||||
// Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
|
// Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
|
||||||
if ( (!fn || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
|
if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
|
||||||
event.result = false;
|
event.result = false;
|
||||||
|
|
||||||
// data.shift();
|
|
||||||
|
|
||||||
// Trigger the native events (except for clicks on links)
|
// Trigger the native events (except for clicks on links)
|
||||||
if ( !bubbling && fn && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
|
if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
|
||||||
this.triggered = true;
|
this.triggered = true;
|
||||||
try {
|
try {
|
||||||
elem[ type ]();
|
elem[ type ]();
|
||||||
|
|
Loading…
Reference in a new issue