1
0
mirror of synced 2024-11-29 16:16:02 +03:00

fix body element caching for non attached elements

This commit is contained in:
Ali Malrkpour 2012-07-15 23:20:56 -04:00
parent d6f506e16b
commit a3383141d5

View File

@ -429,7 +429,7 @@
this.enabled=true; this.enabled=true;
this.container = this.createContainer(); 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) { if (opts.element.attr("class") !== undefined) {
this.container.addClass(opts.element.attr("class")); this.container.addClass(opts.element.attr("class"));