]> source.dussan.org Git - jquery.git/commitdiff
Fixed a bug in event - "native" is a reserved word in Safari 2.
authorJohn Resig <jeresig@gmail.com>
Fri, 7 Sep 2007 19:28:25 +0000 (19:28 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 7 Sep 2007 19:28:25 +0000 (19:28 +0000)
src/event/event.js

index df982ec409f96e893d6e6d562e2e27c34e0bfaf2..205b510a13936d75c68a8c10a308bcee0d35a7f9 100644 (file)
@@ -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 ]();
                        }