diff options
author | jeresig <jeresig@gmail.com> | 2009-12-21 18:02:02 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-21 18:02:02 -0500 |
commit | e083d15fc786a853e54b800e3798536f1d958301 (patch) | |
tree | fa85f8374fdb8aacd9856fe0a89bac49103678c2 | |
parent | 209751fcbd8a42eef68df44c875763b6af8a5474 (diff) | |
download | jquery-e083d15fc786a853e54b800e3798536f1d958301.tar.gz jquery-e083d15fc786a853e54b800e3798536f1d958301.zip |
Tweaked a couple cases where == was used instead of ===.
-rw-r--r-- | src/event.js | 4 | ||||
-rw-r--r-- | src/manipulation.js | 2 | ||||
-rw-r--r-- | src/queue.js | 4 | ||||
-rw-r--r-- | src/support.js | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/event.js b/src/event.js index a4eebf511..72ebcf7e6 100644 --- a/src/event.js +++ b/src/event.js @@ -389,7 +389,7 @@ jQuery.event = { event.metaKey = event.ctrlKey; } - // Add which for click: 1 == left; 2 == middle; 3 == right + // Add which for click: 1 === left; 2 === middle; 3 === right // Note: button is not normalized, so don't use it if ( !event.which && event.button !== undefined ) { event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) )); @@ -755,7 +755,7 @@ jQuery.each(["bind", "one"], function(i, name) { data = undefined; } fn = thisObject === undefined ? fn : jQuery.event.proxy( fn, thisObject ); - var handler = name == "one" ? jQuery.event.proxy( fn, function( event ) { + var handler = name === "one" ? jQuery.event.proxy( fn, function( event ) { jQuery( this ).unbind( event, handler ); return fn.apply( this, arguments ); }) : fn; diff --git a/src/manipulation.js b/src/manipulation.js index cfb9c9d61..4f7ee6504 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -416,7 +416,7 @@ jQuery.extend({ div.firstChild && div.firstChild.childNodes : // String was a bare <thead> or <tfoot> - wrap[1] == "<table>" && !hasBody ? + wrap[1] === "<table>" && !hasBody ? div.childNodes : []; diff --git a/src/queue.js b/src/queue.js index e636ffb41..3770f4d90 100644 --- a/src/queue.js +++ b/src/queue.js @@ -27,7 +27,7 @@ jQuery.extend({ if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued - if ( type == "fx" ) { queue.unshift("inprogress"); } + if ( type === "fx" ) { queue.unshift("inprogress"); } fn.call(elem, function() { jQuery.dequeue(elem, type); }); } @@ -47,7 +47,7 @@ jQuery.fn.extend({ return this.each(function(i, elem){ var queue = jQuery.queue( this, type, data ); - if ( type == "fx" && queue[0] !== "inprogress" ) { + if ( type === "fx" && queue[0] !== "inprogress" ) { jQuery.dequeue( this, type ); } }); diff --git a/src/support.js b/src/support.js index 249fb1509..ef5f01021 100644 --- a/src/support.js +++ b/src/support.js @@ -20,7 +20,7 @@ jQuery.support = { // IE strips leading whitespace when .innerHTML is used - leadingWhitespace: div.firstChild.nodeType == 3, + leadingWhitespace: div.firstChild.nodeType === 3, // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables |