%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/medipszd/public_html/bower_components/select2/src/js/select2/data/
Upload File :
Create Path :
Current File : /home/medipszd/public_html/bower_components/select2/src/js/select2/data/minimumInputLength.js

define([

], function () {
  function MinimumInputLength (decorated, $e, options) {
    this.minimumInputLength = options.get('minimumInputLength');

    decorated.call(this, $e, options);
  }

  MinimumInputLength.prototype.query = function (decorated, params, callback) {
    params.term = params.term || '';

    if (params.term.length < this.minimumInputLength) {
      this.trigger('results:message', {
        message: 'inputTooShort',
        args: {
          minimum: this.minimumInputLength,
          input: params.term,
          params: params
        }
      });

      return;
    }

    decorated.call(this, params, callback);
  };

  return MinimumInputLength;
});

Zerion Mini Shell 1.0