cowboy/jquery-hashchange

accessing native window properties

tbranyen opened this issue · 3 comments

In blackberry 4.6 window[ str_location ][ str_href ] will result in a TypeError exception being raised. Custom properties added to the window object can be access in the hash notation, but native properties cannot.

Lark, can you test and see which of these works?

window['location']['href']
window['location'].href
window.location['href']
window.location.href
location['href']
location.href

window['location']['href'] - fails
window['location'].href - fails
window.location['href'] - works
window.location.href - works
location['href'] - works
location.href - works

Changed window['location']['href'] to location.href to fix OMG FUN bug in blackberry 4.6. Closed by 400b357.