-4

JSLint claims there is a missing semicolon here:

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);
    }
}

"missing semicolon"? Where?

B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

1 Answers1

2

Here:

window.onunload = function() {
    window.clearInterval(poll);
} <--------
Ben Aubin
  • 5,542
  • 2
  • 34
  • 54