From: Darren Date: Wed, 10 Oct 2012 17:06:49 +0000 (+0100) Subject: Correctly reading passed application options X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0801c871589ba6cdde2fd42a9017289dae4fc346;p=KiwiIRC.git Correctly reading passed application options --- diff --git a/client/dev/model_application.js b/client/dev/model_application.js index e95b2bd..1f4e0e5 100644 --- a/client/dev/model_application.js +++ b/client/dev/model_application.js @@ -19,9 +19,13 @@ kiwi.model.Application = function () { /* Address for the kiwi server */ this.kiwi_server = null; - this.initialize = function () { + this.initialize = function (options) { that = this; + if (options[0].container) { + this.set('container', options[0].container); + } + // Best guess at where the kiwi server is this.detectKiwiServer(); };