Skip to content

Commit

Permalink
Update mixin_api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-c committed Apr 19, 2014
1 parent 2518bba commit 4198344
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/mixin_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ be made.

For example, let's say all your components need to iplement some touch screen behavior and also
override Flight's default `trigger` function. Instead of having to add these mixins to every component,
you can use them to create a base component (`Base`) which all other components will extend.
you can use them to create a base component (`components/base`) which all other components will extend.

```js
define(function(require) {
Expand All @@ -113,7 +113,6 @@ define(function(require) {

return defineComponent(withTouchScreen, withCustomTrigger);
});

```

Component constructors have a `mixin` method which can be used to create a new Component constructor
Expand All @@ -129,7 +128,6 @@ define(function(require) {
//..
}
});

```


0 comments on commit 4198344

Please sign in to comment.