Is there any common fix for jQuery Firefox error: Could not convert JavaScript argument arg 0?
Posted
by Abuthakir
on Stack Overflow
See other posts from Stack Overflow
or by Abuthakir
Published on 2010-06-09T11:50:03Z
Indexed on
2010/06/09
11:52 UTC
Read the original article
Hit count: 163
jQuery
I updated jQuery latest version v1.4.2 and getting 'Could not convert JavaScript argument arg 0' this error. Is the any common fix for this. I found some solution and they are saying that when finding dimension for display none element it will give this error. Also the following fix is working for me
Placing this
if (!elem || elem == document) elem = document.body
above this line
var computedStyle = defaultView.getComputedStyle(elem, null);
I am not sure this is the proper solution. I first found this bug when using jquery blockUI plugin and after updating that plugin to latest version fixed this issue. Anyone suggest me better solution for this?
© Stack Overflow or respective owner