Handle undefined settings being passed in.

This commit is contained in:
JC Brand 2016-09-30 10:42:15 +02:00
parent 49d0834719
commit fa4e51f3ba

View File

@ -143,6 +143,7 @@
converse.initialize = function (settings, callback) { converse.initialize = function (settings, callback) {
"use strict"; "use strict";
settings = typeof settings !== "undefined" ? settings : {};
var init_deferred = new $.Deferred(); var init_deferred = new $.Deferred();
var converse = this; var converse = this;
var unloadevent; var unloadevent;