Ember.Mixin Class
PUBLIC
Defined in: packages/ember-metal/lib/mixin.js:401 Module: ember-metal
The Ember.Mixin class allows you to create mixins, whose properties can be added to other classes. For instance, App.Editable = Ember.Mixin.create({
edit: function() {
console.log('starting to edit');
this.set('isEditing', true);
},
isEditing: false
});
// Mix mixins into classes by passing them as the first arguments to
// .extend.
App.CommentView = Ember.View.extend(App.Editable,