{"action":"opened","issue":{"url":"https://api.github.com/repos/paulpflug/foldername-tabs/issues/8","labels_url":"https://api.github.com/repos/paulpflug/foldername-tabs/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/paulpflug/foldername-tabs/issues/8/comments","events_url":"https://api.github.com/repos/paulpflug/foldername-tabs/issues/8/events","html_url":"https://github.com/paulpflug/foldername-tabs/issues/8","id":130600636,"number":8,"title":"Version 0.1.8 causes error when the last tab in a pane is closed","user":{"login":"kankaristo","id":3522333,"avatar_url":"https://avatars.githubusercontent.com/u/3522333?v=3","gravatar_id":"","url":"https://api.github.com/users/kankaristo","html_url":"https://github.com/kankaristo","followers_url":"https://api.github.com/users/kankaristo/followers","following_url":"https://api.github.com/users/kankaristo/following{/other_user}","gists_url":"https://api.github.com/users/kankaristo/gists{/gist_id}","starred_url":"https://api.github.com/users/kankaristo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kankaristo/subscriptions","organizations_url":"https://api.github.com/users/kankaristo/orgs","repos_url":"https://api.github.com/users/kankaristo/repos","events_url":"https://api.github.com/users/kankaristo/events{/privacy}","received_events_url":"https://api.github.com/users/kankaristo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-02T07:31:01Z","updated_at":"2016-02-02T07:31:01Z","closed_at":null,"body":"I recently updated foldername-tabs to version 0.1.8 and started getting an error when I close the last tab in a pane.\r\n\r\nAtom's error dialog points to https://github.com/atom/tabs/issues/253, but the error doesn't happen in safe mode, or if I disable the foldername-tabs package. It also started happening very close to version 0.1.8 being released, so it's probably caused by some change in that version.\r\n\r\nSteps to reproduce:\r\n1. Split pane (e.g. ctrl-k, right arrow)\r\n2. Close the tab in the split pane\r\n3. Error\r\n\r\n\r\n**Atom Version**: 1.5.0-beta1\r\n**System**: Ubuntu 15.10\r\n**Thrown From**: [tabs](https://github.com/atom/tabs) package, v0.88.0\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'forEach' of undefined\r\n\r\n```\r\nAt /usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/composite-disposable.js:24\r\n\r\nTypeError: Cannot read property 'forEach' of undefined\r\n    at module.exports.CompositeDisposable.dispose (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/composite-disposable.js:24:25)\r\n    at Function.module.exports.Emitter.simpleDispatch (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)\r\n    at Emitter.module.exports.Emitter.emit (/usr/share/atom-beta/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)\r\n    at Pane.module.exports.Pane.destroyed (/usr/share/atom-beta/resources/app.asar/src/pane.js:659:20)\r\n    at Pane.module.exports.Model.destroy (/usr/share/atom-beta/resources/app.asar/src/model.js:31:58)\r\n    at Pane.module.exports.Pane.destroy (/usr/share/atom-beta/resources/app.asar/src/pane.js:650:39)\r\n    at Pane.module.exports.Pane.removeItem (/usr/share/atom-beta/resources/app.asar/src/pane.js:422:21)\r\n    at Pane.module.exports.Pane.destroyItem (/usr/share/atom-beta/resources/app.asar/src/pane.js:464:16)\r\n    at atom-tabs.TabBarView.onMouseDown (/usr/share/atom-beta/resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:677:19)\r\n```"}}