From ecbdc9305b19c70a603e6432e0250cf1dfa67574 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 1 Feb 2013 12:27:30 -0800 Subject: [PATCH] minor optimization. #787 --- select2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 230b4b01..146ba463 100644 --- a/select2.js +++ b/select2.js @@ -1011,12 +1011,13 @@ the specific language governing permissions and limitations under the Apache Lic this.container.addClass("select2-dropdown-open").addClass("select2-container-active"); - this.updateResults(true); if(this.dropdown[0] !== this.body().children().last()[0]) { this.dropdown.detach().appendTo(this.body()); } + this.updateResults(true); + mask = $("#select2-drop-mask"); // ensure the mask is always right before the dropdown