开发者

Jquery exception in event special change

We are using openlayers in our app along with jQuery and when we click on a certain marker on our map we run into an error on IE8/7 in jQuery code wherein it crashes when its trying to handle the DOM events in the following function:

jQuery.event.special.change = {
    filters: {
        focusout: testChange, 

        click: function( e ) {
            var elem = e.target, type = elem.type;

...

This occurs in Jquery 1.4.2 and the line no in the function is 2281. Does anyone have an idea what this error is. I am struggling to debug this. It works fine on Firefox, Chrome and Safari.

Just an update I had a breakpoint set within the function click mentioned above and its not hit in FFX!

e.target is an OpenLayer.Geometry.Point object and wh开发者_高级运维en I look at the object in IE it doesn't have a type property.

Also what is that comma doing there? Is that a mistake?

The call stack shows that the above function is called at:

var ret = handleObj.handler.apply( this, arguments ) line#1936

in the function handle of jQuery.

The error thrown is Run time error-failed.

After this the execution continues but there are many other errors reported on the page.

Please tell me if I can provide you more information, but I have no idea what is going wrong here.

Can you think of some reason why this is occurring on IE only


it seems that it's related to this bug, have you tried updating your jQuery the latest release?


Well we added a hack in our jquery code that continues execution at that part if the browser is not msie. some weirdass shit yet to get to the bottom of this. but the fix was necessary

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜