-kiwi.model.Application = function () {\r
+kiwi.model.Application = Backbone.Model.extend(new (function () {\r
\r
// Set to a reference to this object within initialize()\r
var that = null;\r
\r
this.initializeClient = function () {\r
this.view = new kiwi.view.Application({model: this, el: this.get('container')});\r
-\r
\r
/**\r
* Set the UI components up\r
*/\r
this.panels = new kiwi.model.PanelList();\r
- console.log('panels', this.panels);\r
\r
this.controlbox = new kiwi.view.ControlBox({el: $('#controlbox')[0]});\r
this.bindControllboxCommands(this.controlbox);\r
};\r
\r
\r
-\r
- return new (Backbone.Model.extend(this))(arguments);\r
-};\r
+})());\r
// Override the kiwi_server to use. (Think: running on standalone client..)
//kiwi_server: 'http://kiwiirc.com:80'
};
-
+
// Start the app by either the dev or closed environment
(kiwi && kiwi.global && kiwi.global.start(opts)) || (kiwi && kiwi.start(opts));
}