Permalink
Browse files

fixed detection of window.onhashchange to support FF3.6

window.onhashchange is added in FF3.6.
https://developer.mozilla.org/en/DOM/window.onhashchange

It exists, but it's typeof "undefined" by default.
  • Loading branch information...
1 parent 3d6995f commit c49b40906f4bea695d76aa9ec81bafc35f749383 @ahx ahx committed with finnlabs • software architects Nov 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.observehashchange.js
@@ -48,7 +48,7 @@
};
function isHashChangeEventSupported() {
- return typeof window.onhashchange !== 'undefined';
+ return "onhashchange" in window;
}
function nativeVersion() {

0 comments on commit c49b409

Please sign in to comment.