diff --git a/Docs/Utilities/Selectors.md b/Docs/Utilities/Selectors.md index 1da177ec1..163a1639b 100644 --- a/Docs/Utilities/Selectors.md +++ b/Docs/Utilities/Selectors.md @@ -10,12 +10,11 @@ Gets all the elements within an element that match the given selector. ### Syntax: - var myElements = myElement.getElements(selector[, nocash]); + var myElements = myElement.getElements(selector); ### Arguments: 1. selector - (*string*) The CSS Selector to match. -2. nocash - (*boolean*, optional: defaults to false) If true, the found Elements are not extended. ### Returns: diff --git a/Source/Core/Core.js b/Source/Core/Core.js index e59f7db96..9d9defd8e 100644 --- a/Source/Core/Core.js +++ b/Source/Core/Core.js @@ -176,7 +176,7 @@ function $merge(){ function $pick(){ for (var i = 0, l = arguments.length; i < l; i++){ - if ($defined(arguments[i])) return arguments[i]; + if (arguments[i] != undefined) return arguments[i]; } return null; }; diff --git a/Source/Native/Function.js b/Source/Native/Function.js index dd0116d76..9410e1253 100644 --- a/Source/Native/Function.js +++ b/Source/Native/Function.js @@ -18,7 +18,7 @@ Function.implement({ options = options || {}; return function(event){ var args = options.arguments; - args = $defined(args) ? $splat(args) : Array.slice(arguments, (options.event) ? 1 : 0); + args = (args != undefined) ? $splat(args) : Array.slice(arguments, (options.event) ? 1 : 0); if (options.event) args = [event || window.event].extend(args); var returns = function(){ return self.apply(options.bind || null, args); diff --git a/Source/Native/Hash.js b/Source/Native/Hash.js index 873d49e65..483c6c364 100644 --- a/Source/Native/Hash.js +++ b/Source/Native/Hash.js @@ -58,7 +58,7 @@ Hash.implement({ include: function(key, value){ var k = this[key]; - if (!$defined(k)) this[key] = value; + if (k == undefined) this[key] = value; return this; },