karma-runner/karma-webdriver-launcher — pull request #12 by Coltspb (2014-03-18 16:07:59+00:00)
Title: Use kill event instead overriding the .kill()

Hi,
After Karma#11.11 ([e6f36ca](e6f36cacddcdae0d5626cbbe78dbf6720b0626af)) the .kill() metdod of launcher should return promise, otherwise the attempt to kill browser crashes on this [step](https://github.com/karma-runner/karma/blob/master/lib/launcher.js#L142) with
```
TypeError: Cannot call method 'then' of undefined
```

We can use asyc [kill-event](https://github.com/karma-runner/karma/blob/master/lib/launchers/base.js#L50) to kill the browser instead of overriding .kill() method.