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
..
2016-12-14 13:30:34 -07:00
2016-12-13 12:13:47 -08:00
2017-02-16 12:59:05 +01:00
2016-08-09 14:43:38 -06:00
2016-09-20 16:52:47 -07:00
2017-03-02 10:14:59 -08:00
2017-01-14 09:04:49 -08:00
2015-09-18 20:48:50 -06:00
2017-02-15 11:36:57 -05:00
2016-11-29 16:55:14 -08:00
2016-12-01 10:48:45 -08:00
2016-01-15 14:35:28 -06:00
2017-01-19 13:30:39 -08:00
2014-02-03 13:20:28 -08:00
2016-12-01 10:48:45 -08:00
2016-05-01 16:48:09 -07:00
2016-12-01 14:02:11 -08:00
2016-12-01 13:24:12 -08:00
2016-08-25 22:44:57 -04:00
2015-10-07 15:25:02 -05:00
2017-02-14 14:12:20 -07:00
2017-02-18 11:32:44 +03:00
2016-01-15 14:35:28 -06:00
2014-09-30 12:58:10 -06:00
2017-03-02 10:19:48 -08:00
2016-03-25 16:37:01 +01:00
2016-12-01 10:48:45 -08:00
2016-12-01 10:48:45 -08:00
2016-12-02 15:01:06 -08:00
2016-12-01 10:48:45 -08:00
2016-11-19 12:22:59 -08:00
2015-08-21 12:55:22 -07:00
2015-04-22 07:29:00 -07:00
2016-12-06 22:30:01 -08:00
2016-09-26 20:52:13 +03:00
2017-01-05 17:12:02 -08:00
2016-08-15 16:45:10 -07:00
2017-01-20 11:36:27 -08:00
2016-11-29 16:55:14 -08:00
2016-12-01 10:48:45 -08:00
2016-01-13 19:05:38 -08:00
2014-11-24 14:58:21 -08:00
2015-07-07 13:46:53 -07:00
2017-01-18 10:19:25 -07:00
2016-11-30 14:27:29 -08:00
2016-11-29 16:55:14 -08:00
2016-03-28 14:49:26 +02:00
2016-03-28 16:40:39 +02:00
2016-09-12 18:03:40 -07:00
2016-05-30 14:49:29 +02:00
2016-11-29 16:55:14 -08:00
2016-09-26 20:52:13 +03:00
2017-03-04 15:39:38 +01:00
2015-10-07 15:25:00 -05:00
2014-12-09 13:41:33 -07:00
2017-02-18 11:32:44 +03:00
2016-10-27 10:57:48 -07:00
2015-10-13 18:54:48 -06:00
2017-01-02 11:55:41 -08:00
2013-12-31 15:05:34 -08:00
2016-10-07 10:40:41 +02:00
2016-12-01 10:48:45 -08:00
2016-02-11 19:56:25 -08:00
2017-01-20 15:09:57 +01:00
2016-10-07 10:40:41 +02:00
2016-09-26 20:52:13 +03:00
2017-02-14 11:44:38 -07:00
2016-12-08 16:05:45 -08:00
2017-01-20 08:53:28 -05:00
2017-01-20 08:53:28 -05:00
2017-03-02 11:54:00 -08:00
2016-03-18 18:30:35 +01:00
2017-01-18 10:19:25 -07:00
2016-09-26 20:52:13 +03:00
2016-08-02 16:16:27 -06:00
2016-10-12 09:04:41 +02:00
2016-10-07 10:40:41 +02:00
2016-10-17 12:06:00 +02:00
2016-12-22 16:39:40 -08:00
2015-08-19 17:55:29 -07:00
2016-12-04 15:28:43 -03:00
2016-03-01 10:56:03 -05:00
2016-11-29 16:55:14 -08:00
2017-03-01 17:32:31 -05:00
2017-03-02 18:11:22 -08:00