Removing Panels properly
authorDarren <darren@darrenwhitlen.com>
Wed, 3 Oct 2012 12:16:42 +0000 (13:16 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 3 Oct 2012 12:16:42 +0000 (13:16 +0100)
client_backbone/dev/model_panel.js

index e0fd88fd52ad9433c97e1cab20cab30577bcc1c2..d0b598c299095c883a9451a410cd6be649127618 100755 (executable)
@@ -66,6 +66,8 @@ kiwi.model.Panel = Backbone.Model.extend({
             this.unset('members');\r
         }\r
 \r
+        kiwi.app.panels.remove(this);\r
+\r
         this.unbind();\r
         this.destroy();\r
 \r