Browse Source

remove unnecessary code

Igor Vaynberg 12 years ago
parent
commit
87e62004f6
1 changed files with 1 additions and 3 deletions
  1. 1 3
      select2.js

+ 1 - 3
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("<li class='select2-no-results'>" + opts.formatNoMatches(search.val()) + "</li>");
-                    }
+                    render("<li class='select2-no-results'>" + opts.formatNoMatches(search.val()) + "</li>");
                     return;
                 }