2017-04-07 09:57:03 -04:00
|
|
|
import DropDown from './drop_down';
|
|
|
|
|
2017-05-12 13:16:47 -04:00
|
|
|
class Hook {
|
|
|
|
constructor(trigger, list, plugins, config) {
|
|
|
|
this.trigger = trigger;
|
|
|
|
this.list = new DropDown(list);
|
|
|
|
this.type = 'Hook';
|
|
|
|
this.event = 'click';
|
|
|
|
this.plugins = plugins || [];
|
|
|
|
this.config = config || {};
|
|
|
|
this.id = trigger.id;
|
|
|
|
}
|
|
|
|
}
|
2017-04-07 09:57:03 -04:00
|
|
|
|
|
|
|
export default Hook;
|