Standardized the type checks across core. isFunction and isArray now use Object.proto...
authorJohn Resig <jeresig@gmail.com>
Mon, 17 Nov 2008 16:32:05 +0000 (16:32 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 17 Nov 2008 16:32:05 +0000 (16:32 +0000)
commitab551c2b14ac6b0511cf3da10ca224ce461a0f10
tree7640391551a223f08da43c85ae886225c35724ca
parent0aa8d40cdfb50fd423a3bdcf585ac27f89df5b97
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: docs.jquery.com/JQuery_Core_Style_Guidelines#Type_Checks. Fixes bug #3618.
src/ajax.js
src/core.js
src/event.js
src/fx.js
src/offset.js
src/selector.js