modella: update formatting
This commit is contained in:
parent
212b75647d
commit
f00d5dfa9e
|
@ -52,6 +52,9 @@ user
|
||||||
|
|
||||||
```coffeescript
|
```coffeescript
|
||||||
Model.emit('event', [data...])
|
Model.emit('event', [data...])
|
||||||
|
```
|
||||||
|
|
||||||
|
```coffeescript
|
||||||
record.emit('event', [data...])
|
record.emit('event', [data...])
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -100,18 +103,16 @@ user
|
||||||
```coffeescript
|
```coffeescript
|
||||||
MyPlugin = ->
|
MyPlugin = ->
|
||||||
return (Model) ->
|
return (Model) ->
|
||||||
```
|
|
||||||
|
|
||||||
```coffeescript
|
|
||||||
Model.method = ...
|
Model.method = ...
|
||||||
Model.prototype.method = ...
|
Model.prototype.method = ...
|
||||||
Model.attr(...)
|
Model.attr(...)
|
||||||
```
|
|
||||||
|
|
||||||
```coffeescript
|
|
||||||
Model
|
Model
|
||||||
```
|
```
|
||||||
|
|
||||||
|
A plugin is a function that returns a model decorator (ie, a function that takes in a model and returns a model).
|
||||||
|
|
||||||
### Memory
|
### Memory
|
||||||
|
|
||||||
```coffeescript
|
```coffeescript
|
||||||
|
|
Loading…
Reference in New Issue