Преглед на файлове

Merge pull request #219 from malekpour/master

body element caching bug fix
Igor Vaynberg преди 13 години
родител
ревизия
2befc347c5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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"));