diff options
author | maciej moczulski <m.moczulski@samsung.com> | 2013-04-10 10:54:45 +0200 |
---|---|---|
committer | Youmin Ha <youmin.ha@samsung.com> | 2013-04-26 14:43:30 +0900 |
commit | d0d6ac44c78f602abdc73a4bf886b42e669783f7 (patch) | |
tree | e543598f25a9fac895b9ebeff2f2760dc7854e96 /src/js | |
parent | bfa821719fbfcfe3460b584840a81dd7e6b1f6a3 (diff) | |
download | web-ui-fw-d0d6ac44c78f602abdc73a4bf886b42e669783f7.tar.gz web-ui-fw-d0d6ac44c78f602abdc73a4bf886b42e669783f7.tar.bz2 web-ui-fw-d0d6ac44c78f602abdc73a4bf886b42e669783f7.zip |
Replace in LoadTheme function strings build with array join with the string concat
Change-Id: I5535c8e8e5accd228cb278e0a50f79d6183a2401
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/jquery.mobile.tizen.loader.js | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/js/jquery.mobile.tizen.loader.js b/src/js/jquery.mobile.tizen.loader.js index a454c213..dc14f898 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 ); |