From d0d6ac44c78f602abdc73a4bf886b42e669783f7 Mon Sep 17 00:00:00 2001 From: maciej moczulski Date: Wed, 10 Apr 2013 10:54:45 +0200 Subject: [PATCH] Replace in LoadTheme function strings build with array join with the string concat Change-Id: I5535c8e8e5accd228cb278e0a50f79d6183a2401 --- src/js/jquery.mobile.tizen.loader.js | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/src/js/jquery.mobile.tizen.loader.js b/src/js/jquery.mobile.tizen.loader.js index a454c21..dc14f89 100644 --- a/src/js/jquery.mobile.tizen.loader.js +++ b/src/js/jquery.mobile.tizen.loader.js @@ -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 ); -- 2.7.4