From 7f4f3d7defb2dee94835183bb13f6fcf57869de3 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 21 May 2013 16:48:51 +0200 Subject: [PATCH] Add default config options to converse.js --- converse.js | 7 +++++++ main.js | 7 +------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/converse.js b/converse.js index b067e710f..c5d2a399a 100644 --- a/converse.js +++ b/converse.js @@ -2510,6 +2510,13 @@ }; converse.initialize = function (settings) { + // Default values + this.animate = true; + this.auto_list_rooms = false; + this.auto_subscribe = false; + this.hide_muc_server = false; + this.prebind = false; + this.xhr_user_search = false; _.extend(this, settings); this.chatboxes = new this.ChatBoxes(); this.chatboxesview = new this.ChatBoxesView({model: this.chatboxes}); diff --git a/main.js b/main.js index 03fa7cd17..be33a3e72 100644 --- a/main.js +++ b/main.js @@ -1,10 +1,5 @@ require(["jquery", "converse"], function($, converse) { converse.initialize({ - animate: true, - bosh_service_url: 'https://bind.opkode.im', // Please use this connection manager only for testing purposes - prebind: false, - xhr_user_search: false, - auto_subscribe: false, - auto_list_rooms: false + bosh_service_url: 'https://bind.opkode.im' // Please use this connection manager only for testing purposes }); });