1
0
mirror of synced 2024-11-30 00:26:03 +03:00

replace this.$element.val() with this.current()

This commit is contained in:
Zubair 2015-01-12 19:04:07 -05:00
parent 2bdb5dbdae
commit 1c8846079b

View File

@ -10,7 +10,7 @@ define([
MaximumSelectionLength.prototype.query = MaximumSelectionLength.prototype.query =
function (decorated, params, callback) { function (decorated, params, callback) {
var count = this.$element.val() != null ? this.$element.val().length : 0; var count = this.current() != null ? this.current().length : 0;
if (count >= this.maximumSelectionLength) { if (count >= this.maximumSelectionLength) {
this.trigger('results:message', { this.trigger('results:message', {
message: 'maximumSelected', message: 'maximumSelected',