diff options
author | John Resig <jeresig@gmail.com> | 2007-09-07 19:28:25 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-09-07 19:28:25 +0000 |
commit | ba2109136deda8fce5bd4d4dc96f0a45ffaf646a (patch) | |
tree | 60140bfa31f12c20a6a7f380ee39a9d98b3780ec /src/event | |
parent | 84eb2cffca04d231015e86a4c1d9d23f9efbd68e (diff) | |
download | jquery-ba2109136deda8fce5bd4d4dc96f0a45ffaf646a.tar.gz jquery-ba2109136deda8fce5bd4d4dc96f0a45ffaf646a.zip |
Fixed a bug in event - "native" is a reserved word in Safari 2.
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/event.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 ](); } |