1
0
Fork 0

chore: Linting for markdown and js

This commit is contained in:
joostdecock 2021-10-17 17:34:55 +02:00
parent eca8199ed8
commit 1c92e0f655
6677 changed files with 24391 additions and 25987 deletions

View file

@ -1,8 +1,8 @@
---
title: Pattern.on()
---
***
A pattern's `on()` method allows you to attach a function to one of the
## title: Pattern.on()
A pattern's `on()` method allows you to attach a function to one of the
pattern's [lifecycle hooks](/reference/hooks/). It takes the
lifecycle hook's name as the first argument and the function as the second.
This method will then be triggered by the lifecycle hook.
@ -13,7 +13,7 @@ This method will then be triggered by the lifecycle hook.
```js
Pattern pattern.on(string hook, function method)
```
```
<Tip>
@ -38,4 +38,3 @@ Your pattern now has a yellow background.
The [plugin guide](/guides/plugins/) contains more info on how you can use hooks
</Tip>