code: function(data) {
              var evt = $.Event("select2-selecting", { val: this.id(data), object: data, choice: data });
              this.opts.element.trigger(evt);
              return !evt.isDefaultPrevented();
          }
docs: abstract