Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

window not w, evt wasn't defined. Thanks @staabm

  • Loading branch information...
commit 90da8515ec5db90b082fe0ad48f746fcda7f108e 1 parent f28c033
scottjehl authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/jquery.mobile.zoom.iosorientationfix.js
View
4 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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.