mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-13 09:03:10 +00:00
referenced the full object to avoid a minifier issue when trying to reference a local variable. Will follow up on this...
This commit is contained in:
parent
9ab7817b5b
commit
90fb871ee8
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ $.event.special.swipe = {
|
|||
|
||||
// Get the current page orientation. This method is exposed publicly, should it
|
||||
// be needed, as jQuery.event.special.orientationchange.orientation()
|
||||
special_event.orientation = get_orientation = function() {
|
||||
$.event.special.orientationchange.orientation = get_orientation = function() {
|
||||
var elem = document.documentElement;
|
||||
return elem && elem.clientWidth / elem.clientHeight < 1.1 ? "portrait" : "landscape";
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue