accessing native window properties
tbranyen opened this issue · 3 comments
tbranyen commented
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.
cowboy commented
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
tbranyen commented
window['location']['href'] - fails
window['location'].href - fails
window.location['href'] - works
window.location.href - works
location['href'] - works
location.href - works