From 87e62004f67179afe5809d525f957bde8acacc78 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 22 May 2013 23:40:26 -0700 Subject: [PATCH] remove unnecessary code --- select2.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/select2.js b/select2.js index c3de0af1..49479344 100644 --- a/select2.js +++ b/select2.js @@ -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 (results.find(".select2-no-results").length === 0) { - render("
  • " + opts.formatNoMatches(search.val()) + "
  • "); - } + render("
  • " + opts.formatNoMatches(search.val()) + "
  • "); return; }