remove unnecessary code
This commit is contained in:
parent
f1a5fe2c9e
commit
87e62004f6
@ -1571,9 +1571,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) {
|
if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) {
|
||||||
if (results.find(".select2-no-results").length === 0) {
|
render("<li class='select2-no-results'>" + opts.formatNoMatches(search.val()) + "</li>");
|
||||||
render("<li class='select2-no-results'>" + opts.formatNoMatches(search.val()) + "</li>");
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user