gitlab-org--gitlab-foss/app/assets/javascripts/droplab/hook.js
2017-11-25 22:33:05 +11:00

15 lines
340 B
JavaScript

import DropDown from './drop_down';
class Hook {
constructor(trigger, list, plugins, config) {
this.trigger = trigger;
this.list = new DropDown(list, config);
this.type = 'Hook';
this.event = 'click';
this.plugins = plugins || [];
this.config = config || {};
this.id = trigger.id;
}
}
export default Hook;