Sha256: 0599a221890d814a946c4c586fe12fa78fabf0ba5a8cdf21ffaf4002d26077b1
Contents?: true
Size: 682 Bytes
Versions: 86
Compression:
Stored size: 682 Bytes
Contents
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; });
Version data entries
86 entries across 86 versions & 7 rubygems