Commit Graph

8 Commits

Author SHA1 Message Date
Antonio Scandurra
ed9a101de2 Fix destroying a PanelContainer containing multiple panels
Previously, when calling `destroy` on a `PanelContainer` containing
multiple panels, Atom would throw a `Cannot read property 'destroy' of
undefined` exception. This was due to iterating over the panels while at
the same time destroying them, which caused the iterated array to be
modified during the loop.

With this commit we slice the array before iterating over it so that
destroying a `PanelContainer` doesn't throw exceptions anymore.
2017-03-04 15:39:38 +01:00
Nathan Sobo
4591f00a65 Remove view registry references from the workspace model layer
Removed various ::getView methods from the model. Using the atom.views
global in the views for now, but going to switch them over to using a
locally assigned view registry instead in a subsequent commit.
2014-12-01 16:28:33 -08:00
Ben Ogle
5a82afd333 💄 2014-10-20 12:03:48 -07:00
Ben Ogle
155d144788 Fix spec 2014-10-17 15:23:06 -07:00
Ben Ogle
de78e53b35 Add priority system to the panels 2014-10-17 13:44:40 -07:00
Ben Ogle
37a7cfaf9a Remove location junk from panel creation 2014-10-16 17:31:13 -07:00
Ben Ogle
4ca630a7da orientation -> location 2014-10-16 16:54:08 -07:00
Ben Ogle
5c2e55861c Add panel containers 2014-10-16 15:33:28 -07:00