From 99b09db9a38dc9cf69ba21bf082a0ce6bf28fb14 Mon Sep 17 00:00:00 2001 From: maciej moczulski Date: Fri, 12 Apr 2013 09:48:21 +0200 Subject: [PATCH] minor changes: replace one occurrence of array.join with string concat and simplify jQuery arguments Change-Id: I1ccae876985c507466a6f75023772bfa2aa7d698 --- src/js/jquery.mobile.tizen.loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/jquery.mobile.tizen.loader.js b/src/js/jquery.mobile.tizen.loader.js index 5496e34..a454c21 100644 --- a/src/js/jquery.mobile.tizen.loader.js +++ b/src/js/jquery.mobile.tizen.loader.js @@ -411,7 +411,7 @@ If developers do not give a viewport meta tag, Tizen Web UI Framework automatica meta = document.createElement( "meta" ); if ( meta ) { meta.name = "viewport"; - content = [ "width=", viewportWidth, ", user-scalable=no" ].join( "" ); + content = "width=" + viewportWidth + ", user-scalable=no"; if ( ! isNaN( viewportWidth ) ) { // Fix scale to 1.0, if viewport width is set to fixed value. // NOTE: Works wrong in Tizen browser! @@ -433,7 +433,7 @@ If developers do not give a viewport meta tag, Tizen Web UI Framework automatica tizen.log.debug( "themedefaultfont size: " + themeDefaultFontSize + ", ratio: " + ratio ); var scaledFontSize = Math.max( Math.floor( themeDefaultFontSize * ratio ), 4 ); - $( 'html.ui-mobile' ).css( { 'font-size': scaledFontSize + "px" } ); + $( 'html' ).css( { 'font-size': scaledFontSize + "px" } ); tizen.log.debug( 'html:font size is set to ' + scaledFontSize ); $( document ).ready( function ( ) { $( '.ui-mobile' ).children( 'body' ).css( { 'font-size': scaledFontSize + "px" } ); -- 2.7.4