1
0
mirror of synced 2024-11-22 04:56:08 +03:00

Allow passing non-jQuery objects as dropdownParent

This commit is contained in:
Mikhail Titov 2018-09-24 20:56:01 -05:00 committed by Kevin Brown
parent 9e4f842fb1
commit 357c2a11c2

View File

@ -3,7 +3,7 @@ define([
'../utils'
], function ($, Utils) {
function AttachBody (decorated, $element, options) {
this.$dropdownParent = options.get('dropdownParent') || $(document.body);
this.$dropdownParent = $(options.get('dropdownParent') || document.body);
decorated.call(this, $element, options);
}