Skip to content

accessing native window properties #9

Closed
tbranyen opened this Issue Jun 9, 2010 · 3 comments

2 participants

@tbranyen
tbranyen commented Jun 9, 2010

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
Owner
cowboy commented Jun 12, 2010

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
tbranyen commented Jul 1, 2010

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

@cowboy
Owner
cowboy commented Jul 5, 2010

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.