1
0
mirror of synced 2024-11-26 23:06:02 +03:00

remove unnecessary code

This commit is contained in:
Igor Vaynberg 2013-05-22 23:40:26 -07:00
parent f1a5fe2c9e
commit 87e62004f6

View File

@ -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;
} }