summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord-a-n <in@db.to>2012-10-03 13:35:31 +0300
committerd-a-n <in@db.to>2012-10-03 13:35:31 +0300
commit754c559d632c08be58f06c3eedb3a9494c51dedf (patch)
treea57892d7fbce53f1865405c946eee4c4aa6eff11
parent4652751285ed4c4788442910574350f163f51ca9 (diff)
downloadetherpad-lite-754c559d632c08be58f06c3eedb3a9494c51dedf.zip
Changed pad hook names to follow naming conventions.
-rw-r--r--doc/api/hooks_server-side.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/hooks_server-side.md b/doc/api/hooks_server-side.md
index 84ca4490..bc56f19b 100644
--- a/doc/api/hooks_server-side.md
+++ b/doc/api/hooks_server-side.md
@@ -64,7 +64,7 @@ This hook gets called upon the rendering of an ejs template block. For any speci
Have a look at `src/templates/pad.html` and `src/templates/timeslider.html` to see which blocks are available.
-## padCreated
+## padCreate
Called from: src/node/db/Pad.js
Things in context:
@@ -73,16 +73,16 @@ Things in context:
This hook gets called when a new pad was created.
-## padLoaded
+## padLoad
Called from: src/node/db/Pad.js
Things in context:
1. pad - the pad instance
-This hook gets called when an pad was loaded.
+This hook gets called when an pad was loaded. If a new pad was created and loaded this event will be emitted too.
-## padUpdated
+## padUpdate
Called from: src/node/db/Pad.js
Things in context:
@@ -91,7 +91,7 @@ Things in context:
This hook gets called when an existing pad was updated.
-## padRemoved
+## padRemove
Called from: src/node/db/Pad.js
Things in context: