add dev tools note

Zack 2018-08-27 20:28:14 -04:00
parent fe378ea5d1
commit 22c403b464
1 changed files with 4 additions and 0 deletions

@ -269,6 +269,10 @@ Some plugin developers have written their own libraries for developing plugins:
# Extra
## Developer Tools
Discord is an electron app which is essentially chromium, being as such you can access the chrome developer tools with `Ctrl` + `Shift` + `i` on Windows and `Cmd` + `Alt` + `i` on MacOS.
## Add namespaces to your events
When using jQuery and listening on events like `$(document).on('dblclick', ...)`, use a namespace such as `$(document).on('dblclick.myplugin', ...)` in order to easily unload all events with `$(document).off('dblclick.myplugin')` or `$(document).off('*.myplugin')` without affecting Discord and other plugins.