From 749f49b1a00f360c46521ad21a0d3020200de681 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 11 Dec 2012 00:54:09 -0800 Subject: [PATCH] Add `instanceof` memory leak warning to `_.isArray`. Former-commit-id: f90b1ad1850fb21c1d976f037a382c7388496d1c --- lodash.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lodash.js b/lodash.js index eb7781b8a..67f451c5a 100644 --- a/lodash.js +++ b/lodash.js @@ -1180,6 +1180,8 @@ * // => true */ var isArray = nativeIsArray || function(value) { + // `instanceof` may cause a memory leak in IE 7 if `value` is a host object + // http://ajaxian.com/archives/working-aroung-the-instanceof-memory-leak return value instanceof Array || toString.call(value) == arrayClass; };