Getting window dimensions currently fails in Nokia browsers, causing JS error (and...
authorscottjehl <scott@scottjehl.com>
Wed, 22 Dec 2010 20:24:07 +0000 (15:24 -0500)
committerscottjehl <scott@scottjehl.com>
Wed, 22 Dec 2010 20:24:07 +0000 (15:24 -0500)
commit18fa1fd9da12fd6a259b422f91b663d9fbdb181e
tree3c43cb96c8a13f8f5ab8366f35c0f7e0a826bcf4
parent291b1edf444f30d9360a42c8d563e26eaf1a2ddb
Getting window dimensions currently fails in Nokia browsers, causing JS error (and consequently making jQuery Mobile fail to render the page). Based on a tip from Ben Nolan, this fix returns window.screen[width|height] if the other  attempts at getting window dimensions fail. On mobile at least, it seems to make sense, and on desktop (assuming this issue would ever show up on desktop), this might be better than returning false or undefined.
src/dimensions.js