Is there any common fix for jQuery Firefox error: Could not convert JavaScript argument arg 0?
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 th开发者_高级运维is?
精彩评论