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:
scottjehl 2011-06-18 09:19:45 -04:00
parent 9ab7817b5b
commit 90fb871ee8

View file

@ -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";
};