From edad9c1f9ac32ecabc79821ff233681eefa8d1b8 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Tue, 24 Jan 2012 02:12:42 +0700 Subject: [PATCH] window not w, evt wasn't defined. Thanks @staabm --- js/jquery.mobile.zoom.iosorientationfix.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.zoom.iosorientationfix.js b/js/jquery.mobile.zoom.iosorientationfix.js index a361dc78..6e54d095 100644 --- a/js/jquery.mobile.zoom.iosorientationfix.js +++ b/js/jquery.mobile.zoom.iosorientationfix.js @@ -6,7 +6,7 @@ define( [ "jquery", "jquery.mobile.core", "jquery.mobile.zoom" ], function( $ ) //>>excludeEnd("jqmBuildExclude"); ( function( $, window ) { var zoom = $.mobile.zoom, - x, y, z, aig; + evt, x, y, z, aig; function checkTilt( e ){ evt = e.originalEvent; @@ -17,7 +17,7 @@ define( [ "jquery", "jquery.mobile.core", "jquery.mobile.zoom" ], function( $ ) z = Math.abs( aig.z ); // If portrait orientation and in one of the danger zones - if( !w.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){ + if( !window.orientation && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){ if( zoom.enabled ){ zoom.disable(); }