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

minor optimization. #787

This commit is contained in:
Igor Vaynberg 2013-02-01 12:27:30 -08:00
parent 5374b8799b
commit ecbdc9305b

View File

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