From: scottjehl Date: Wed, 22 Dec 2010 20:24:07 +0000 (-0500) Subject: Getting window dimensions currently fails in Nokia browsers, causing JS error (and... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=18fa1fd9da12fd6a259b422f91b663d9fbdb181e;hp=18fa1fd9da12fd6a259b422f91b663d9fbdb181e;p=jquery.git 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. ---