Merge pull request #2728 from demkalkov/master
'document.body' instead of 'body' selector
This commit is contained in:
commit
073f4cb087
@ -132,7 +132,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
|
|
||||||
function measureScrollbar () {
|
function measureScrollbar () {
|
||||||
var $template = $( MEASURE_SCROLLBAR_TEMPLATE );
|
var $template = $( MEASURE_SCROLLBAR_TEMPLATE );
|
||||||
$template.appendTo('body');
|
$template.appendTo(document.body);
|
||||||
|
|
||||||
var dim = {
|
var dim = {
|
||||||
width: $template.width() - $template[0].clientWidth,
|
width: $template.width() - $template[0].clientWidth,
|
||||||
@ -311,7 +311,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
whiteSpace: "nowrap"
|
whiteSpace: "nowrap"
|
||||||
});
|
});
|
||||||
sizer.attr("class","select2-sizer");
|
sizer.attr("class","select2-sizer");
|
||||||
$("body").append(sizer);
|
$(document.body).append(sizer);
|
||||||
}
|
}
|
||||||
sizer.text(e.val());
|
sizer.text(e.val());
|
||||||
return sizer.width();
|
return sizer.width();
|
||||||
@ -717,7 +717,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
|
|
||||||
this.container.attr("title", opts.element.attr("title"));
|
this.container.attr("title", opts.element.attr("title"));
|
||||||
|
|
||||||
this.body = $("body");
|
this.body = $(document.body);
|
||||||
|
|
||||||
syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass);
|
syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user