mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
0f17378b26
Refs #4001 - grunt-jscs@0.8.1 which provides ES6 support.
18 lines
542 B
JavaScript
18 lines
542 B
JavaScript
import DropdownButton from 'ghost/components/gh-dropdown-button';
|
|
|
|
var PopoverButton = DropdownButton.extend({
|
|
click: Ember.K, // We don't want clicks on popovers, but dropdowns have them. So `K`ill them here.
|
|
|
|
mouseEnter: function (event) {
|
|
this._super(event);
|
|
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
|
|
},
|
|
|
|
mouseLeave: function (event) {
|
|
this._super(event);
|
|
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
|
|
}
|
|
});
|
|
|
|
export default PopoverButton;
|