From 65e30c13e27e83cf49b82a9fe04746533305655f Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 9 Nov 2014 09:52:24 -0800 Subject: [PATCH] Clarify comments on `_.support.spliceObjects` and `_.isFunction`. [ci skip] --- lodash.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lodash.js b/lodash.js index 1d201eed4..4e3120223 100644 --- a/lodash.js +++ b/lodash.js @@ -1177,12 +1177,11 @@ * Detect if `Array#shift` and `Array#splice` augment array-like objects * correctly. * - * Firefox < 10, IE compatibility mode, and IE < 9 have buggy Array `shift()` + * Firefox < 10, compatibility modes of IE 8, and IE < 9 have buggy Array `shift()` * and `splice()` functions that fail to remove the last element, `value[0]`, * of array-like objects even though the `length` property is set to `0`. - * The `shift()` method is buggy in IE 8 compatibility mode, while `splice()` - * is buggy regardless of mode in IE < 9 and buggy in compatibility mode - * in IE 9. + * The `shift()` method is buggy in compatibility modes of IE 8, while `splice()` + * is buggy regardless of mode in IE < 9. * * @memberOf _.support * @type boolean @@ -7373,7 +7372,7 @@ * // => false */ function isFunction(value) { - // avoid a Chakra bug in IE 11 + // use `|| false` to avoid a Chakra bug in compatibility modes of IE 11 // https://github.com/jashkenas/underscore/issues/1621 return typeof value == 'function' || false; }