Skip to content

Commit

Permalink
mixin docs: defaultAttrs -> attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
necolas committed Jul 19, 2014
1 parent dd3266f commit 6932361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/mixin_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ define(function(require) {

## Overriding defaults in a mixin

The `defaultAttrs` method is available to both component and mixin modules. When
The `attributes` method is available to both component and mixin modules. When
used with mixins it will not overwrite attributes already defined in the
component module.

Expand All @@ -86,7 +86,7 @@ component module.
define(function(require) {

function bigButton() {
this.defaultAttrs({
this.attributes({
buttonClass: 'js-button-big'
});
}
Expand Down

0 comments on commit 6932361

Please sign in to comment.