mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 22:44:07 +03:00
0f17378b26
Refs #4001 - grunt-jscs@0.8.1 which provides ES6 support.
16 lines
340 B
JavaScript
16 lines
340 B
JavaScript
/*
|
|
Dropdowns and their buttons are evented and do not propagate clicks.
|
|
*/
|
|
var DropdownMixin = Ember.Mixin.create(Ember.Evented, {
|
|
classNameBindings: ['isOpen:open:closed'],
|
|
isOpen: false,
|
|
|
|
click: function (event) {
|
|
this._super(event);
|
|
|
|
return event.stopPropagation();
|
|
}
|
|
});
|
|
|
|
export default DropdownMixin;
|