开发者

Some javascript is crashing ie7 only how to debug

开发者 https://www.devze.com 2023-03-11 12:23 出处:网络
Merged with Image flow plugin crashes on ie7 when upgrated to jquery1.5.1 from jquery1.3.开发者_JAVA技巧
Merged with Image flow plugin crashes on ie7 when upgrated to jquery1.5.1 from jquery1.3. 开发者_JAVA技巧

i am using some plugin and updated jquery recently , some click on plugin crashes IE7 , is there anyway i can debug where exactly it is causing problem and crashing IE7.

i want some pointers to debug where the error is?

I am not getting any clue as the browser is crashing without any error.

Any help will be appreciated.


I found the problem , its throwing error at the following location

removeAttr is throwing error , if i comment that it works

  $('#myImgagesDiv img').each(function () {
    if ($(this).attr('myCustomattr')) {
        $(this).attr('src', $(this).attr('myCustomattr'));
        $(this).removeAttr('myCustomattr'); // code creating problem
    };
});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号