testCapturingRemovesBubblingListener() {
    let bubbleCount = 0;
    function callbackBubble() {
      bubbleCount++;
    }

    let captureCount = 0;
    function callbackCapture() {
      captureCount++;
      events.removeAll(et1);
    }

    events.listen(et1, 'test', callbackCapture, true);
    events.listen(et1, 'test', callbackBubble, false);

    et1.dispatchEvent('test');
    assertEquals(1, captureCount);
    assertEquals(0, bubbleCount);
  }
Use computed properties to avoid compiler checks of defines