哪个缺少分号?

时间:2015-03-16 16:31:36

标签: jquery jslint

JSLint声称此处缺少分号:

if ('onhashchange' in window && (docmode === undefined || docmode > 7 )) {
    window.onhashchange = expandFromLocation;                      
}
// IE7 doesn't support the hashchange event so we fall back to standard polling technique
else {
    poll = window.setInterval(checkHash, 500);
    // Clean-up objects as IE7 has hideous performance
    window.onunload = function() {
        window.clearInterval(poll);
    }
}

"缺少分号"?在哪里?

1 个答案:

答案 0 :(得分:2)

下面:

window.onunload = function() {
    window.clearInterval(poll);
} <--------