mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
d51f2bcf23
closes https://github.com/TryGhost/Admin/pull/2107 - updated related babel dependencies - bumped eslint - ran `yarn lint:js --fix` - added eslint ignore comments for some required non-camel-case properties
18 lines
421 B
JavaScript
18 lines
421 B
JavaScript
import BasicDropdown from 'ember-basic-dropdown/components/basic-dropdown';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
class GhBasicDropdown extends BasicDropdown {
|
|
@service dropdown;
|
|
|
|
constructor() {
|
|
super(...arguments);
|
|
this.dropdown.on('close', this, this.close);
|
|
}
|
|
|
|
willDestroy() {
|
|
this.dropdown.off('close', this, this.close);
|
|
}
|
|
}
|
|
|
|
export default GhBasicDropdown;
|