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:
parent
948fbcca11
commit
f0a349d782
|
@ -724,9 +724,7 @@
|
|||
} else {
|
||||
text = option.html;
|
||||
}
|
||||
if (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');
|
||||
|
|
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
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
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue