0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/client/app/components/gh-popover-button.js

25 lines
519 B
JavaScript
Raw Normal View History

2015-02-12 21:22:32 -07:00
import Ember from 'ember';
2014-09-29 12:17:27 +01:00
import DropdownButton from 'ghost/components/gh-dropdown-button';
const {inject} = Ember;
function K() {
return this;
}
export default DropdownButton.extend({
dropdown: inject.service(),
click: K,
mouseEnter() {
this._super(...arguments);
2014-09-29 12:17:27 +01:00
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
},
mouseLeave() {
this._super(...arguments);
2014-09-29 12:17:27 +01:00
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
}
});