Closed gonzoramos closed 12 years ago
Yeah, the HAS_HASHCHANGE
bit assumes a variable called window
. We'll have to add a clause there to short-circuit when window
is undefined.
so something like
if (window != undefined) { ... }
when appropriate?
Yeah, something like that. The whole Hash
class is pretty much irrelevant if you don't have a window, so you could just wrap the whole definition in:
if (typeof window !== "undefined") {
...
}
@shawnbot I'm thinking that MM.Hash should be a candidate for modestmaps-ui, which would be more neatly separated as a non-server part here. Thoughts?
MM.Hash is removed in modestmaps/modestmaps-js.
It seems to complain about not being able to find a definition to 'window' in line 1056 of modestmaps.js