you don't have to wrap this into a function call - this whole file is wrapped during `grunt build`, so you can change this into

````javascript
if (elem.removeEventListener) {
  elem.removeEventListener('load', window.QUnit.load, false);
} else {
  elem.detachEvent('onload', window.QUnite.load);
}
````

Actually, can you move this code into https://github.com/karma-runner/karma-qunit/blob/master/src/adapter.wrapper (that's where all the stuff we don't wanna load during unit testing the adapter itself is)