From a5a6cabac6351f5124409f124cc37ffddcb658c6 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 26 Aug 2012 01:07:36 -0700 Subject: [PATCH] Cleanup `createIterator` and `_.contains`. Former-commit-id: 39d4c33e5af0d9338a1725b5c07332a14f453374 --- lodash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index c6a8ebad8..9241d3d9e 100644 --- a/lodash.js +++ b/lodash.js @@ -657,7 +657,7 @@ data.useHas = data.useHas !== false; data.useStrict = useStrict == null ? isStrictFast : useStrict; - if (!('noCharByIndex' in data)) { + if (data.noCharByIndex == null) { data.noCharByIndex = noCharByIndex; } if (!data.exit) { @@ -1884,7 +1884,7 @@ 'init': 'false', 'noCharByIndex': false, 'beforeLoop': { - 'array': 'if (toString.call(iteratee) == stringClass) return collection.indexOf(target) > -1' + 'array': 'if (toString.call(collection) == stringClass) return collection.indexOf(target) > -1' }, 'inLoop': 'if (value === target) return true' });