diff --git a/plugins/c9.ide.editors/tab.js b/plugins/c9.ide.editors/tab.js index ea647873..37f4d4e6 100644 --- a/plugins/c9.ide.editors/tab.js +++ b/plugins/c9.ide.editors/tab.js @@ -304,7 +304,7 @@ define(function(require, module, exports) { if (rule) ui.removeStyleRule(rule, stylesheet); // If there are no more pages left, reset location - var last = e.last || amlPane.getPages().length === 0; + var last = e && e.last || amlPane.getPages().length === 0; if (last) apf.setStyleClass(amlPane.$ext, "empty");