Remove condition made unnecessary by poorly written CoffeeScript. The text of an option was never matching this function, so why leave it there?

master
Patrick Filler 2011-11-04 15:48:50 -04:00
parent 948fbcca11
commit f0a349d782
4 changed files with 5 additions and 8 deletions

View File

@ -724,9 +724,7 @@
} else {
text = option.html;
}
if (result.html !== text) {
result.html(text);
}
result.html(text);
this.result_activate(result);
if (option.group_array_index != null) {
$("#" + this.results_data[option.group_array_index].dom_id).css('display', 'auto');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -414,9 +414,8 @@ class Chosen extends AbstractChosen
text = text.substr(0, startpos) + '<em>' + text.substr(startpos)
else
text = option.html
result.html text if result.html != text
result.html(text)
this.result_activate result
$("#" + @results_data[option.group_array_index].dom_id).css('display', 'auto') if option.group_array_index?