minor changes: replace one occurrence of array.join with string concat and simplify...
authormaciej moczulski <m.moczulski@samsung.com>
Fri, 12 Apr 2013 07:48:21 +0000 (09:48 +0200)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 26 Apr 2013 05:43:29 +0000 (14:43 +0900)
Change-Id: I1ccae876985c507466a6f75023772bfa2aa7d698

src/js/jquery.mobile.tizen.loader.js

index 5496e34..a454c21 100644 (file)
@@ -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" } );