code: function createChoiceListener(li, index) {
    li.clickListener = choiceListener(index);
    li.addEventListener('click', li.clickListener);
    li.clearListener = (function () {
      this.removeEventListener('click', this.clickListener);
    }).bind(li);
  }
docs: Attach that listener to the element.