Client: Private `kiwi` namespace renamed to `_kiwi`
[KiwiIRC.git] / client / assets / dev / model_applet.js
index cf337e636d2691cb7ae18082bcdd964f5181ae86..e4477499498b770eef30d645275c0826147f9c54 100644 (file)
@@ -1,4 +1,4 @@
-kiwi.model.Applet = kiwi.model.Panel.extend({\r
+_kiwi.model.Applet = _kiwi.model.Panel.extend({\r
     // Used to determine if this is an applet panel. Applet panel tabs are treated\r
     // differently than others\r
     applet: true,\r
@@ -7,7 +7,7 @@ kiwi.model.Applet = kiwi.model.Panel.extend({
     initialize: function (attributes) {\r
         // Temporary name\r
         var name = "applet_"+(new Date().getTime().toString()) + Math.ceil(Math.random()*100).toString();\r
-        this.view = new kiwi.view.Applet({model: this, name: name});\r
+        this.view = new _kiwi.view.Applet({model: this, name: name});\r
 \r
         this.set({\r
             "name": name\r
@@ -55,13 +55,13 @@ kiwi.model.Applet = kiwi.model.Panel.extend({
         this.view.$el.html('Loading..');\r
         $script(applet_url, function () {\r
             // Check if the applet loaded OK\r
-            if (!kiwi.applets[applet_name]) {\r
+            if (!_kiwi.applets[applet_name]) {\r
                 that.view.$el.html('Not found');\r
                 return;\r
             }\r
 \r
             // Load a new instance of this applet\r
-            that.load(new kiwi.applets[applet_name]());\r
+            that.load(new _kiwi.applets[applet_name]());\r
         });\r
     },\r
 \r