Fixed a bug in event - "native" is a reserved word in Safari 2.
This commit is contained in:
parent
84eb2cffca
commit
ba2109136d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
// Clone the incoming data, if any
|
||||||
data = jQuery.makeArray(data || []);
|
data = jQuery.makeArray(data || []);
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ jQuery.event = {
|
||||||
val = false;
|
val = false;
|
||||||
|
|
||||||
// Trigger the native events (except for clicks on links)
|
// 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;
|
this.triggered = true;
|
||||||
element[ type ]();
|
element[ type ]();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue