Skip to content

Commit

Permalink
Removing remaining strict-mode warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Dec 19, 2008
1 parent 77344f4 commit 0935f4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/core.js
Expand Up @@ -680,7 +680,7 @@ jQuery.extend({

// Return the named cache data, or the ID for the element
return name ?
jQuery.cache[ id ][ name ] :
jQuery.cache[ id ][ name ] || null :
id;
},

Expand Down Expand Up @@ -1163,12 +1163,12 @@ jQuery.extend({
// Also, we need to make sure that the correct elements are being returned
// (IE returns comment nodes in a '*' query)
if ( jQuery.browser.msie ) {
while ( elem = second[ i++ ] )
while ( (elem = second[ i++ ]) )
if ( elem.nodeType != 8 )
first[ pos++ ] = elem;

} else
while ( elem = second[ i++ ] )
while ( (elem = second[ i++ ]) )
first[ pos++ ] = elem;

return first;
Expand Down
5 changes: 3 additions & 2 deletions src/event.js
Expand Up @@ -40,8 +40,9 @@ jQuery.event = {
handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
// Handle the second event of a trigger and when
// an event is called after a page has unloaded
if ( typeof jQuery !== "undefined" && !jQuery.event.triggered )
return jQuery.event.handle.apply(arguments.callee.elem, arguments);
return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
jQuery.event.handle.apply(arguments.callee.elem, arguments) :
undefined;
});
// Add elem as a property of the handle function
// This is to prevent a memory leak with non-native
Expand Down
2 changes: 1 addition & 1 deletion src/offset.js
Expand Up @@ -131,7 +131,7 @@ jQuery.each( ['Left', 'Top'], function(i, name) {
var method = 'scroll' + name;

jQuery.fn[ method ] = function(val) {
if (!this[0]) return;
if (!this[0]) return null;

return val !== undefined ?

Expand Down

0 comments on commit 0935f4a

Please sign in to comment.