Last bit of cleanup
authorPaul Shahid <pshahid90@gmail.com>
Wed, 26 Mar 2014 00:46:17 +0000 (20:46 -0400)
committerPaul Shahid <pshahid90@gmail.com>
Wed, 26 Mar 2014 00:46:17 +0000 (20:46 -0400)
client/src/models/application.js
client/src/models/panel.js

index eb6b8079f6247cf2e580dd4f65e9c5c1f5151ca2..05dd48251b020c7a9ecc4707c55098ab25b67582 100644 (file)
@@ -127,9 +127,7 @@ _kiwi.model.Application = function () {
             this.message = new _kiwi.view.StatusMessage({el: this.view.$el.find('.status_message')[0]});\r
 \r
             this.resize_handle = new _kiwi.view.ResizeHandler({el: this.view.$el.find('.memberlists_resize_handle')[0]});\r
-\r
-            this.panel_access = new Array();\r
-\r
+            \r
             // Rejigg the UI sizes\r
             this.view.doLayout();\r
         };\r
index 71415572739ac4b2348aa58f510a4f5df999a5c2..14dfc0d0dee11820e07f858b77acb59a3978bc5c 100644 (file)
@@ -9,7 +9,6 @@ _kiwi.model.Panel = Backbone.Model.extend({
     },\r
 \r
     closePanel: function () {\r
-        console.log("Closing panel");\r
         if (this.view) {\r
             this.view.unbind();\r
             this.view.remove();\r
@@ -27,20 +26,6 @@ _kiwi.model.Panel = Backbone.Model.extend({
 \r
         this.unbind();\r
         this.destroy();\r
-\r
-        // If closing the active panel, switch to the last-accessed panel\r
-        if (this === _kiwi.app.panels().active) {\r
-            _kiwi.app.panel_access.shift();\r
-\r
-            var modelsList = _kiwi.app.connections.active_connection.panels.models;\r
-            //Since it always has at least one tab, just go to the 0th element\r
-            for (var i=0; i < modelsList.length;i++) {\r
-                if (modelsList[i].cid === _kiwi.app.panel_access[0]) {\r
-                    console.log("Yap");\r
-                    modelsList[i].view.show();\r
-                }\r
-            }\r
-        }\r
     },\r
 \r
     // Alias to closePanel() for child objects to override\r