From c4498ca3647680f019cf2cc11a179db20e246808 Mon Sep 17 00:00:00 2001 From: Cory Chaplin Date: Thu, 17 Jul 2014 10:57:36 +0200 Subject: [PATCH] Removing useless part --- client/src/views/application.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/client/src/views/application.js b/client/src/views/application.js index 624a081..1a95955 100644 --- a/client/src/views/application.js +++ b/client/src/views/application.js @@ -376,20 +376,6 @@ _kiwi.view.Application = Backbone.View.extend({ //Make this panel the most recently accessed panel_access.unshift(panel.cid); }); - - this.model.panels.on('close', function(panel) { - // If closing the active panel, switch to the last-accessed panel - if (panel_access[0] === panel.cid) { - panel_access.shift(); - - //Get the last-accessed panel model now that we removed the closed one - var model = _.find(_kiwi.app.panels('applets').concat(_kiwi.app.panels('connections')), {cid: panel_access[0]}); - - if (model) { - model.view.show(); - } - } - }); this.model.panels.on('remove', function(panel) { // If closing the active panel, switch to the last-accessed panel -- 2.25.1