1
0
mirror of synced 2024-11-25 22:36:03 +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' '../utils'
], function ($, Utils) { ], function ($, Utils) {
function AttachBody (decorated, $element, options) { function AttachBody (decorated, $element, options) {
this.$dropdownParent = options.get('dropdownParent') || $(document.body); this.$dropdownParent = $(options.get('dropdownParent') || document.body);
decorated.call(this, $element, options); decorated.call(this, $element, options);
} }