From adc15e368294f39fc587a616cbded2c0a84d4754 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 29 Jun 2012 05:20:06 -0700 Subject: [PATCH] fix page 2+ rendering. fixes #175 --- select2.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/select2.js b/select2.js index d0db4610..b407491e 100755 --- a/select2.js +++ b/select2.js @@ -582,12 +582,7 @@ populate(results, 0); - children=container.children(); - if (children.length===0) { - container.html(markup.join("")); - } else { - $(children[children.length-1]).append(markup.join("")); - } + container.append(markup.join("")); for (uid in uidToData) { $("#select2-result-"+uid, container).data("select2-data", uidToData[uid]);