]> source.dussan.org Git - jquery.git/commitdiff
Fixed all warnings generated when javascript.options.strict is enabled in Firefox...
authorJohn Resig <jeresig@gmail.com>
Sun, 15 Oct 2006 02:57:55 +0000 (02:57 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 15 Oct 2006 02:57:55 +0000 (02:57 +0000)
src/ajax/ajax.js
src/event/event.js
src/jquery/jquery.js

index 4ade2e846e687414e208f603e0816731a2b7356a..13ad01d40e738619ad6d6194b573db085acbb687 100644 (file)
@@ -688,7 +688,7 @@ jQuery.extend({
                        var dataType = type.dataType;
                        var global = typeof type.global == "boolean" ? type.global : true;
                        var timeout = typeof type.timeout == "number" ? type.timeout : jQuery.timeout;
-                       var ifModified = type.ifModified || false;
+                       ifModified = type.ifModified || false;
                        data = type.data;
                        url = type.url;
                        type = type.type;
index 86a93d4a7e039853d6f5dcce86226f8a3a8e5395..a60c4616aff29c624e66f61b69a65a84002bbeed 100644 (file)
@@ -1600,7 +1600,7 @@ new function(){
                                // Add the event
                                jQuery.event.add( this, o, function(e){
                                        // If this function has already been executed, stop
-                                       if ( count++ ) return;
+                                       if ( count++ ) return true;
                                
                                        // And execute the bound function
                                        return f.apply(this, [e]);
index 7a59a4ea6db6a25d763b6b3b3e3fae71ae56b403..31dde991d5e41b11f5f1a090444a51d9b05b7f40 100644 (file)
@@ -28,7 +28,7 @@ window.undefined = window.undefined;
  * @name jQuery
  * @cat Core
  */
-jQuery = function(a,c) {
+function jQuery(a,c) {
 
        // Shortcut for document ready (because $(document).each() is silly)
        if ( a && typeof a == "function" && jQuery.fn.ready )
@@ -63,13 +63,15 @@ jQuery = function(a,c) {
                // Find the matching elements and save them for later
                jQuery.find( a, c ) );
 
-  // See if an extra function was provided
+       // See if an extra function was provided
        var fn = arguments[ arguments.length - 1 ];
 
        // If so, execute it in context
        if ( fn && typeof fn == "function" )
                this.each(fn);
-};
+
+       return this;
+}
 
 // Map over the $ in case of overwrite
 if ( typeof $ != "undefined" )
@@ -1031,6 +1033,7 @@ jQuery.fn = jQuery.prototype = {
                                for ( var i = 0; i < t.length; i++ )
                                        if ( jQuery.filter(t[i],[a]).r.length )
                                                return a;
+                               return false;
                        }) ||
 
                        t.constructor == Boolean &&
@@ -2233,12 +2236,12 @@ jQuery.extend({
                },
 
                handle: function(event) {
-                       if ( typeof jQuery == "undefined" ) return;
+                       if ( typeof jQuery == "undefined" ) return false;
 
                        event = event || jQuery.event.fix( window.event );
 
                        // If no correct event was found, fail
-                       if ( !event ) return;
+                       if ( !event ) return false;
 
                        var returnValue = true;