aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2008-11-17 16:32:05 +0000
committerJohn Resig <jeresig@gmail.com>2008-11-17 16:32:05 +0000
commitab551c2b14ac6b0511cf3da10ca224ce461a0f10 (patch)
tree7640391551a223f08da43c85ae886225c35724ca /src/offset.js
parent0aa8d40cdfb50fd423a3bdcf585ac27f89df5b97 (diff)
downloadjquery-ab551c2b14ac6b0511cf3da10ca224ce461a0f10.tar.gz
jquery-ab551c2b14ac6b0511cf3da10ca224ce461a0f10.zip
Standardized the type checks across core. isFunction and isArray now use Object.prototype.toString to verify the type, .constructor use was removed in favor of typeof, typeof checks now use ===, undefined checks use === undefined. All of this is outlined in the new style guidelines: http://docs.jquery.com/JQuery_Core_Style_Guidelines#Type_Checks. Fixes bug #3618.
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js
index 5c600cc2e..30dedbc84 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -133,7 +133,7 @@ jQuery.each( ['Left', 'Top'], function(i, name) {
jQuery.fn[ method ] = function(val) {
if (!this[0]) return;
- return val != undefined ?
+ return val !== undefined ?
// Set the scroll offset
this.each(function() {