Skip to content
Permalink
Browse files

jquery event: Misc, removed a commented line from last commit.

  • Loading branch information
flesler committed Jan 2, 2009
1 parent b2583a7 commit 303ad32c749ba92d2ce31dfe46942c92093677cb
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/event.js
@@ -213,21 +213,17 @@ jQuery.event = {

event.currentTarget = elem;

var fn = jQuery.isFunction( elem[ type ] );

// Trigger the event, it is assumed that "handle" is a function
var handle = jQuery.data(elem, "handle");
if ( handle )
handle.apply( elem, data );

// 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;

// data.shift();

// 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;
try {
elem[ type ]();

0 comments on commit 303ad32

Please sign in to comment.
You can’t perform that action at this time.