aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery/jquery.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2006-10-15 02:57:55 +0000
committerJohn Resig <jeresig@gmail.com>2006-10-15 02:57:55 +0000
commitaf961d58c244224c14f3bb519214485cb670c64d (patch)
tree97ffd95f965f1bf7ebe50ba6491c7a724ac1d558 /src/jquery/jquery.js
parente7669f64d88612884df27c5744558191f8e6c8b1 (diff)
downloadjquery-af961d58c244224c14f3bb519214485cb670c64d.tar.gz
jquery-af961d58c244224c14f3bb519214485cb670c64d.zip
Fixed all warnings generated when javascript.options.strict is enabled in Firefox about:config.
Diffstat (limited to 'src/jquery/jquery.js')
-rw-r--r--src/jquery/jquery.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 7a59a4ea6..31dde991d 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -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;