blob: 6a3d20261929eed2a3e4acc105da5346ee62b93e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import $ from 'jquery';
import { GitLabDropdown } from './gl_dropdown';
export default function initDeprecatedJQueryDropdown($el, opts) {
// eslint-disable-next-line func-names
return $el.each(function () {
if (!$.data(this, 'deprecatedJQueryDropdown')) {
$.data(this, 'deprecatedJQueryDropdown', new GitLabDropdown(this, opts));
}
});
}
|