juju/juju-gui — pull request #274 by jaycee (2014-05-06 13:33:21+00:00)
Title: Fixes not closing ghost inspector

Per the [bug][1], without flags clicking "X" to close the ghost inspector
doesn't work. This is because the inspector only fires a `changeState` event when
the close button is clicked.

This is pretty simple to remedy: the inspector now checks for the il flag, and
either fires the `changeState` event or calls `destroy`, as appropriate.

A test has been added for the no-flags situation, and the current test was
updated to set the il flag.

[1]: https://bugs.launchpad.net/juju-gui/+bug/1315043