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.
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;
|