From: John Resig Date: Fri, 7 Sep 2007 19:28:25 +0000 (+0000) Subject: Fixed a bug in event - "native" is a reserved word in Safari 2. X-Git-Tag: 1.2~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ba2109136deda8fce5bd4d4dc96f0a45ffaf646a;p=jquery.git Fixed a bug in event - "native" is a reserved word in Safari 2. --- diff --git a/src/event/event.js b/src/event/event.js index df982ec40..205b510a1 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -135,7 +135,7 @@ jQuery.event = { } }, - trigger: function(type, data, element, native, extra) { + trigger: function(type, data, element, donative, extra) { // Clone the incoming data, if any data = jQuery.makeArray(data || []); @@ -172,7 +172,7 @@ jQuery.event = { val = false; // Trigger the native events (except for clicks on links) - if ( fn && native !== false && val !== false && !(jQuery.nodeName(element, 'a') && type == "click") ) { + if ( fn && donative !== false && val !== false && !(jQuery.nodeName(element, 'a') && type == "click") ) { this.triggered = true; element[ type ](); }