joewalker/devtools-window — pull request #62 by harthur (2012-10-11 00:51:17+00:00)
Title: Fire event when host changes + bug fix + test

This fixes issue #28. The toolbox emits a `"host-changed"` event whenever the toolbox changes hosts (e.g. from the sidebar to a separate window). There's also a test that tests changing to all the different hosts and remembering the last used host on toolbox open.

I found a bug when writing the test and it blocked that, so I fixed that too in one of the commits. Toolbox destroy now destroys all the panels first.