Remove some old debugging code.

This commit is contained in:
Patrick Filler 2011-11-04 15:51:16 -04:00
parent f0a349d782
commit f87575cb75
6 changed files with 6 additions and 14 deletions

View file

@ -442,8 +442,7 @@
}
};
Chosen.prototype.results_build = function() {
var content, data, startTime, _i, _len, _ref;
startTime = new Date();
var content, data, _i, _len, _ref;
this.parsing = true;
this.results_data = root.SelectParser.select_to_array(this.form_field);
if (this.is_multiple && this.choices > 0) {
@ -684,8 +683,7 @@
}
};
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;
startTime = new Date();
var found, option, part, parts, regex, result, result_id, results, searchText, startpos, text, zregex, _i, _j, _len, _len2, _ref;
this.no_results_clear();
results = 0;
searchText = this.search_field.val() === this.default_text ? "" : $('<div/>').text($.trim(this.search_field.val())).html();

File diff suppressed because one or more lines are too long

View file

@ -435,8 +435,7 @@
}
};
Chosen.prototype.results_build = function() {
var content, data, startTime, _i, _len, _ref;
startTime = new Date();
var content, data, _i, _len, _ref;
this.parsing = true;
this.results_data = root.SelectParser.select_to_array(this.form_field);
if (this.is_multiple && this.choices > 0) {
@ -686,8 +685,7 @@
}
};
Chosen.prototype.winnow_results = function() {
var found, option, part, parts, regex, result_id, results, searchText, startTime, startpos, text, zregex, _i, _j, _len, _len2, _ref;
startTime = new Date();
var found, option, part, parts, regex, result_id, results, searchText, startpos, text, zregex, _i, _j, _len, _len2, _ref;
this.no_results_clear();
results = 0;
searchText = this.search_field.value === this.default_text ? "" : this.search_field.value.strip().escapeHTML();

File diff suppressed because one or more lines are too long

View file

@ -163,7 +163,6 @@ class Chosen extends AbstractChosen
this.close_field()
results_build: ->
startTime = new Date()
@parsing = true
@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
winnow_results: ->
startTime = new Date()
this.no_results_clear()
results = 0

View file

@ -155,7 +155,6 @@ class Chosen extends AbstractChosen
this.close_field()
results_build: ->
startTime = new Date()
@parsing = true
@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")
winnow_results: ->
startTime = new Date()
this.no_results_clear()
results = 0