Explorar el Código

Merge pull request #219 from malekpour/master

body element caching bug fix
Igor Vaynberg hace 13 años
padre
commit
2befc347c5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -429,7 +429,7 @@
 
             this.enabled=true;
             this.container = this.createContainer();
-			this.body = opts.element.closest("body"); // cache for future access
+            this.body = $("body"); // opts.element.closest("body"); // cache for future access
 
             if (opts.element.attr("class") !== undefined) {
                 this.container.addClass(opts.element.attr("class"));