Lines Matching refs:length

29                 var j = $([0]), i = -1, l = this.length;
119 if (!str || str.length < 1) return str;
122 for (i = 0, l = str.length; i < l; i++) {
130 var i = 0, l = array.length;
174 if (string === null || string.length < 1) return [];
176 for (i = 0, l = val.length; i < l; i = i + 1) val[i] = $.trim(val[i]);
269 var el=$el[0], pos=$el.val().length, range;
296 var length = 0;
299 length = el.selectionEnd - offset;
303 length = document.selection.createRange().text.length;
304 sel.moveStart('character', -el.value.length);
305 offset = sel.text.length - length;
307 return { offset: offset, length: length };
372 tl=term.length;
383 markup.push(escapeMarkup(text.substring(match + tl, text.length)));
525 if (group.children.length || query.matcher(t, text(group), datum)) {
610 if (!opts.createSearchChoice || !opts.tokenSeparators || opts.tokenSeparators.length < 1) return undefined;
615 for (i = 0, l = opts.tokenSeparators.length; i < l; i++) {
624 input = input.substring(index + separator.length);
626 if (token.length > 0) {
630 for (i = 0, l = selection.length; i < l; i++) {
770 if ($(e.target).closest(".select2-result-selectable").length > 0) {
891 for (i = 0, l = results.length; i < l; i = i + 1) {
898 compound=result.children && result.children.length > 0;
933 liveRegion.text(opts.formatMatches(results.length));
967 if (group.children.length>0) {
976 if (this.getPlaceholder() !== undefined && children.length > 0) {
994 if (ajaxUrl && ajaxUrl.length > 0) {
1332 if (mask.length == 0) {
1342 if (dropdown.length > 0) {
1455 if (index === children.length - 1) {
1457 if (more.length > 0) {
1484 while (index > -1 && index < choices.length) {
1500 if (arguments.length === 0) {
1504 if (index >= choices.length) index = choices.length - 1;
1539 return this.findHighlightableChoices().length;
1545 if (el.length > 0 && !el.is(".select2-highlighted")) {
1548 } else if (el.length == 0) {
1564 if (more.length === 0) return;
1634 if (results.find('.select2-no-results,.select2-selection-limit,.select2-searching').length) {
1638 self.liveRegion.text(self.opts.formatMatches(results.find('.select2-result-selectable').length));
1652 if ($.isArray(data) && data.length >= maxSelSize && checkFormatter(opts.formatSelectionTooBig, "formatSelectionTooBig")) {
1658 if (search.val().length < opts.minimumInputLength) {
1668 if (opts.maximumInputLength && search.val().length > opts.maximumInputLength) {
1677 if (opts.formatSearching && this.findHighlightableChoices().length === 0) {
1722 }).length === 0) {
1728 if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) {
1836 for (i = 0, l = attrs.length; i < l; i = i + 1) {
1839 if (matches !== null && matches.length >= 1)
1927 len = this.search.val().length;
2397 if (arguments.length === 0) {
2403 if (arguments.length > 1) {
2451 if (arguments.length === 0) {
2456 if (arguments.length > 1) {
2521 }).length;
2531 for (var i = 0; i < ids.length; i++) {
2533 for (var j = 0; j < matches.length; j++) {
2555 if (selected.length && choice && choice[0] == selected[0]) {
2558 if (selected.length) {
2562 if (choice && choice.length) {
2618 if (selected.length &&
2621 if (e.which == KEY.LEFT && prev.length) {
2625 selectedChoice = next.length ? next : null;
2630 selectedChoice = prev.length ? prev : next;
2635 selectedChoice = next.length ? next : null;
2643 if (!selectedChoice || !selectedChoice.length) {
2648 || e.which == KEY.LEFT) && (pos.offset == 0 && !pos.length)) {
2723 if ($(e.target).closest(".select2-search-choice").length > 0) {
2788 if (placeholder !== undefined && this.getVal().length === 0 && this.search.hasClass("select2-focused") === false) {
2871 if (input.length > 0) {
2902 if (this.getMaximumSelectionSize() > 0 && this.val().length >= this.getMaximumSelectionSize()) {
2994 if (selected.length === 0) {
3048 && choice.find(".select2-result-selectable:not(.select2-selected)").length === 0) {
3058 if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){
3059 if(!data || data && !data.more && this.results.find(".select2-no-results").length === 0) {
3125 this.opts.element.val(unique.length === 0 ? "" : unique.join(this.opts.separator));
3135 for (var i = 0; i < current.length; i++) {
3136 for (var j = 0; j < old.length; j++) {
3156 if (arguments.length === 0) {
3161 if (!oldData.length) oldData=[];
3235 if (arguments.length === 0) {
3266 if (args.length === 0 || typeof(args[0]) === "object") {
3267 opts = args.length === 0 ? {} : $.extend({}, args[0]);
3301 || (indexOf(args[0], propertyMethods) && args.length == 1)) {
3336 formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " or more character" + (n == 1? "" : "s"); },
3337 formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1? "" : "s"); },