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 );