diff options
author | scottjehl <scott@scottjehl.com> | 2010-12-22 15:24:07 -0500 |
---|---|---|
committer | scottjehl <scott@scottjehl.com> | 2010-12-22 15:24:07 -0500 |
commit | 18fa1fd9da12fd6a259b422f91b663d9fbdb181e (patch) | |
tree | 3c43cb96c8a13f8f5ab8366f35c0f7e0a826bcf4 /src/offset.js | |
parent | 291b1edf444f30d9360a42c8d563e26eaf1a2ddb (diff) | |
download | jquery-18fa1fd9da12fd6a259b422f91b663d9fbdb181e.tar.gz jquery-18fa1fd9da12fd6a259b422f91b663d9fbdb181e.zip |
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.
Diffstat (limited to 'src/offset.js')
0 files changed, 0 insertions, 0 deletions