Fixes #2175
commit4613cae70cb2187d50681544bcbe75b7a4a8c102
authorOlmo Maldonado <olmo.maldonado@gmail.com>
Mon, 30 Jan 2012 04:54:47 +0000 (29 22:54 -0600)
committerOlmo Maldonado <olmo.maldonado@gmail.com>
Sun, 5 Feb 2012 03:20:07 +0000 (4 21:20 -0600)
tree5f12a1ddb1142261e6f22d46ddf0913bcb7d1ee0
parent0664977ca763c7af1b3cfececeb7b5cff32ca2ac
Fixes #2175

This adds an additional check to `instanceOf` that prevents extraneous
instanceof checks for non-objects (e.g. window) as per:
http://ajaxian.com/archives/working-aroung-the-instanceof-memory-leak

PASSES: IE6-9; FFx 3-5, 8, 10; Chrome latest; Safari 5; Opera 11
Source/Core/Core.js