code: function bindToClick(selector, handler) {
      var elems = document.querySelectorAll(selector);
      var i = -1;
      var len = elems.length;
      while (++i < len) {
        elems[i].addEventListener('click', handler);
      }
    }
docs: Binds the given `handler` to all elements that match the `selector`.