Remove some old debugging code.
This commit is contained in:
parent
f0a349d782
commit
f87575cb75
6 changed files with 6 additions and 14 deletions
|
@ -442,8 +442,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Chosen.prototype.results_build = function() {
|
Chosen.prototype.results_build = function() {
|
||||||
var content, data, startTime, _i, _len, _ref;
|
var content, data, _i, _len, _ref;
|
||||||
startTime = new Date();
|
|
||||||
this.parsing = true;
|
this.parsing = true;
|
||||||
this.results_data = root.SelectParser.select_to_array(this.form_field);
|
this.results_data = root.SelectParser.select_to_array(this.form_field);
|
||||||
if (this.is_multiple && this.choices > 0) {
|
if (this.is_multiple && this.choices > 0) {
|
||||||
|
@ -684,8 +683,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Chosen.prototype.winnow_results = function() {
|
Chosen.prototype.winnow_results = function() {
|
||||||
var found, option, part, parts, regex, result, result_id, results, searchText, startTime, startpos, text, zregex, _i, _j, _len, _len2, _ref;
|
var found, option, part, parts, regex, result, result_id, results, searchText, startpos, text, zregex, _i, _j, _len, _len2, _ref;
|
||||||
startTime = new Date();
|
|
||||||
this.no_results_clear();
|
this.no_results_clear();
|
||||||
results = 0;
|
results = 0;
|
||||||
searchText = this.search_field.val() === this.default_text ? "" : $('<div/>').text($.trim(this.search_field.val())).html();
|
searchText = this.search_field.val() === this.default_text ? "" : $('<div/>').text($.trim(this.search_field.val())).html();
|
||||||
|
|
2
chosen/chosen.jquery.min.js
vendored
2
chosen/chosen.jquery.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -435,8 +435,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Chosen.prototype.results_build = function() {
|
Chosen.prototype.results_build = function() {
|
||||||
var content, data, startTime, _i, _len, _ref;
|
var content, data, _i, _len, _ref;
|
||||||
startTime = new Date();
|
|
||||||
this.parsing = true;
|
this.parsing = true;
|
||||||
this.results_data = root.SelectParser.select_to_array(this.form_field);
|
this.results_data = root.SelectParser.select_to_array(this.form_field);
|
||||||
if (this.is_multiple && this.choices > 0) {
|
if (this.is_multiple && this.choices > 0) {
|
||||||
|
@ -686,8 +685,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Chosen.prototype.winnow_results = function() {
|
Chosen.prototype.winnow_results = function() {
|
||||||
var found, option, part, parts, regex, result_id, results, searchText, startTime, startpos, text, zregex, _i, _j, _len, _len2, _ref;
|
var found, option, part, parts, regex, result_id, results, searchText, startpos, text, zregex, _i, _j, _len, _len2, _ref;
|
||||||
startTime = new Date();
|
|
||||||
this.no_results_clear();
|
this.no_results_clear();
|
||||||
results = 0;
|
results = 0;
|
||||||
searchText = this.search_field.value === this.default_text ? "" : this.search_field.value.strip().escapeHTML();
|
searchText = this.search_field.value === this.default_text ? "" : this.search_field.value.strip().escapeHTML();
|
||||||
|
|
2
chosen/chosen.proto.min.js
vendored
2
chosen/chosen.proto.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -163,7 +163,6 @@ class Chosen extends AbstractChosen
|
||||||
this.close_field()
|
this.close_field()
|
||||||
|
|
||||||
results_build: ->
|
results_build: ->
|
||||||
startTime = new Date()
|
|
||||||
@parsing = true
|
@parsing = true
|
||||||
@results_data = root.SelectParser.select_to_array @form_field
|
@results_data = root.SelectParser.select_to_array @form_field
|
||||||
|
|
||||||
|
@ -377,7 +376,6 @@ class Chosen extends AbstractChosen
|
||||||
@selected_item.find("span").first().after "<abbr class=\"search-choice-close\"></abbr>" if @allow_single_deselect and @selected_item.find("abbr").length < 1
|
@selected_item.find("span").first().after "<abbr class=\"search-choice-close\"></abbr>" if @allow_single_deselect and @selected_item.find("abbr").length < 1
|
||||||
|
|
||||||
winnow_results: ->
|
winnow_results: ->
|
||||||
startTime = new Date()
|
|
||||||
this.no_results_clear()
|
this.no_results_clear()
|
||||||
|
|
||||||
results = 0
|
results = 0
|
||||||
|
|
|
@ -155,7 +155,6 @@ class Chosen extends AbstractChosen
|
||||||
this.close_field()
|
this.close_field()
|
||||||
|
|
||||||
results_build: ->
|
results_build: ->
|
||||||
startTime = new Date()
|
|
||||||
@parsing = true
|
@parsing = true
|
||||||
@results_data = root.SelectParser.select_to_array @form_field
|
@results_data = root.SelectParser.select_to_array @form_field
|
||||||
|
|
||||||
|
@ -368,7 +367,6 @@ class Chosen extends AbstractChosen
|
||||||
@selected_item.down("span").insert { after: "<abbr class=\"search-choice-close\"></abbr>" } if @allow_single_deselect and not @selected_item.down("abbr")
|
@selected_item.down("span").insert { after: "<abbr class=\"search-choice-close\"></abbr>" } if @allow_single_deselect and not @selected_item.down("abbr")
|
||||||
|
|
||||||
winnow_results: ->
|
winnow_results: ->
|
||||||
startTime = new Date()
|
|
||||||
this.no_results_clear()
|
this.no_results_clear()
|
||||||
|
|
||||||
results = 0
|
results = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue