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

This commit is contained in:
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

@ -415,8 +415,7 @@ class Chosen extends AbstractChosen
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?