From 69324e31f08d23bfc4800dbf650f6046faf91b28 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Fri, 16 Dec 2011 18:56:30 +0700 Subject: [PATCH] removed disablezoom function from init --- js/jquery.mobile.init.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/js/jquery.mobile.init.js b/js/jquery.mobile.init.js index 3934816d..4543a683 100644 --- a/js/jquery.mobile.init.js +++ b/js/jquery.mobile.init.js @@ -98,24 +98,6 @@ } } }); - - // This function injects a meta viewport tag to prevent scaling. Off by default, on by default when touchOverflow scrolling is enabled - function disableZoom() { - var cont = "user-scalable=no", - meta = $( "meta[name='viewport']" ); - - if( meta.length ){ - meta.attr( "content", meta.attr( "content" ) + ", " + cont ); - } - else{ - $( "head" ).prepend( "", { "name": "viewport", "content": cont } ); - } - } - - // if touch-overflow is enabled, disable user scaling, as it creates usability issues - if( $.support.touchOverflow && $.mobile.touchOverflowEnabled && !$.mobile.touchOverflowZoomEnabled ){ - disableZoom(); - } // initialize events now, after mobileinit has occurred $.mobile._registerInternalEvents();