docs: function(eventName, handler, elem) {
    if (elem.addEventListener) {
      // Setting useCapture to true so that this virtual handler is always fired first
      // Also handles events that don't bubble correctly like focus/blur
      elem.addEventListener(eventName, handler, true);
    } else {
      elem.attachEvent('on' + eventName, handler);
    }
  }