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,9 +1,10 @@
---
***
title: Using hooks without a plugin
order: 85
---
---------
You can attach a method to a hook at run-time without the need for a plugin
You can attach a method to a hook at run-time without the need for a plugin
using the [Pattern.on()](/reference/api/pattern/on) method.
The method takes the hook name as its first argument, and the hook method as its second.
@ -17,4 +18,3 @@ pattern.on('preRender', function(svg) {
```
Congratulations, you've just made your pattern yellow.