-
Notifications
You must be signed in to change notification settings - Fork 471
JQMIGRATE: jQuery.isWindow() is deprecated
Dave Methvin edited this page Apr 12, 2018
·
2 revisions
The jQuery.isWindow()
method returns true
if its argument is thought to be a window
element. It was created for internal use and is not a reliable way of detecting window
for public needs.
To eliminate this warning, remove any use of jQuery.isWindow()
from code. If it is truly needed it can be replaced with a check for obj != null && obj === obj.window
which was the test used inside this method.
This method was deprecated as of jQuery 3.3.0.
This Wiki describes the latest version of jQuery Migrate. For documentation about version 1.x messages and solutions, see the Version 1.x warnings file and the Version 1.x README.