Correctly reading passed application options
authorDarren <darren@darrenwhitlen.com>
Wed, 10 Oct 2012 17:06:49 +0000 (18:06 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 10 Oct 2012 17:06:49 +0000 (18:06 +0100)
client/dev/model_application.js

index e95b2bde9a0d874ef829998203e43337457c7d01..1f4e0e56e2d681074b08c2eb6e31e54ffdcbadac 100644 (file)
@@ -19,9 +19,13 @@ kiwi.model.Application = function () {
         /* Address for the kiwi server */\r
         this.kiwi_server = null;\r
 \r
-        this.initialize = function () {\r
+        this.initialize = function (options) {\r
             that = this;\r
 \r
+            if (options[0].container) {\r
+                this.set('container', options[0].container);\r
+            }\r
+\r
             // Best guess at where the kiwi server is\r
             this.detectKiwiServer();\r
         };\r