1
0
Fork 0

Revert "chore: Linting for markdown and js"

This reverts commit 1c92e0f655.
This commit is contained in:
joostdecock 2021-10-17 18:26:00 +02:00
parent 994874fa72
commit cba1ab19c8
6627 changed files with 25791 additions and 24211 deletions

View file

@ -1,10 +1,9 @@
***
---
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.
@ -18,3 +17,4 @@ pattern.on('preRender', function(svg) {
```
Congratulations, you've just made your pattern yellow.