Replace in LoadTheme function strings build with array join with the string concat
authormaciej moczulski <m.moczulski@samsung.com>
Wed, 10 Apr 2013 08:54:45 +0000 (10:54 +0200)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 26 Apr 2013 05:43:30 +0000 (14:43 +0900)
Change-Id: I5535c8e8e5accd228cb278e0a50f79d6183a2401

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

index a454c21..dc14f89 100644 (file)
@@ -214,25 +214,21 @@ If developers do not give a viewport meta tag, Tizen Web UI Framework automatica
 
                loadTheme: function ( theme ) {
                        var themePath,
-                               cssPath,
-                               jsPath;
+                       cssPath,
+                       jsPath;
 
                        if ( ! theme ) {
                                theme = tizen.frameworkData.theme;
                        }
-                       themePath = [
-                               tizen.frameworkData.rootDir,
-                               tizen.frameworkData.version,
-                               'themes',
-                               theme
-                       ].join( '/' );
-
-                       jsPath = [ themePath, 'theme.js' ].join( '/' );
-
+                       
+                       themePath = tizen.frameworkData.rootDir + '/' + tizen.frameworkData.version + '/themes/' + theme;
+                       
+                       jsPath = themePath + '/theme.js';
+       
                        if ( tizen.frameworkData.minified ) {
-                               cssPath = [themePath, 'tizen-web-ui-fw-theme.min.css'].join( '/' );
+                               cssPath = themePath + '/tizen-web-ui-fw-theme.min.css';
                        } else {
-                               cssPath = [themePath, 'tizen-web-ui-fw-theme.css'].join( '/' );
+                               cssPath = themePath + '/tizen-web-ui-fw-theme.css';
                        }
                        tizen.css.load( cssPath );
                        tizen.util.loadScriptSync( jsPath );