'undefined' is null or not an object in jquery 1.4.2

I am using jquery 1.4.2 version file  . In IE 8 I am recieving this error 'undefined' is null or not an object. I tried to debug the file and found Line 1920 is causing the issue :

var events = jQuery.data(this, "events"), handlers = events[event.type];

here events is coming undefined . so I Change that to: 

var events = jQuery.data(this, "events") || {}, handlers = events[event.type];


上一篇: php函数总结(主要是引用&)
下一篇: 解决IE6不支持position:fixed的bug

点击获得Trackback地址

发表评论

内 容: