Ghost/core/client/mixins/dropdown-mixin.js
Jason Williams 0f17378b26 Enable JSCS checking on client.
Refs #4001
- grunt-jscs@0.8.1 which provides ES6 support.
2014-10-25 16:13:04 +00:00

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;