Permalink
Browse files

Fixed a bug in event - "native" is a reserved word in Safari 2.

  • Loading branch information...
jeresig committed Sep 7, 2007
1 parent 84eb2cf commit ba2109136deda8fce5bd4d4dc96f0a45ffaf646a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/event/event.js
View
@@ -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 ]();
}

0 comments on commit ba21091

Please sign in to comment.