\r
// Entry point to start the kiwi application\r
init: function (opts, callback) {\r
- var localePromise, themePromise,\r
+ var locale_promise, theme_promise,\r
that = this;\r
+\r
opts = opts || {};\r
\r
this.initUtils();\r
// Set the window title\r
window.document.title = opts.server_settings.client.window_title || 'Kiwi IRC';\r
\r
- localePromise = new Promise(function (resolve) {\r
+ locale_promise = new Promise(function (resolve) {\r
var locale = _kiwi.global.settings.get('locale') || 'magic';\r
$.getJSON(opts.base_path + '/assets/locales/' + locale + '.json', function (locale) {\r
if (locale) {\r
});\r
});\r
\r
- themePromise = new Promise(function (resolve) {\r
+ theme_promise = new Promise(function (resolve) {\r
var text_theme = opts.server_settings.client.settings.text_theme || 'default';\r
$.getJSON(opts.base_path + '/assets/text_themes/' + text_theme + '.json', function(text_theme) {\r
opts.text_theme = text_theme;\r
});\r
\r
\r
- Promise.all([localePromise, themePromise]).then(function () {\r
+ Promise.all([locale_promise, theme_promise]).then(function () {\r
_kiwi.app = new _kiwi.model.Application(opts);\r
\r
// Start the client up\r