File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -162,10 +162,10 @@ The `head` object also offers callbacks for configuring head merging specifics.
162162
163163### Plugins
164164
165- Idiomorph supports a plugin system that allows you to extend the functionality of the library, by registering an object of callbacks:
165+ Idiomorph supports a plugin system that allows you to extend the functionality of the library, by adding an object of callbacks:
166166
167167``` js
168- Idiomorph .registerPlugin ({
168+ Idiomorph .addPlugin ({
169169 name: ' logger' ,
170170 onBeforeNodeAdded : function (node ) {
171171 console .log (' Node added:' , node);
@@ -174,11 +174,9 @@ Idiomorph.registerPlugin({
174174 console .log (' Node removed:' , node);
175175 },
176176});
177-
178- Idiomorph .plugins // { logger: { ...} };
179177```
180178
181- These callbacks will be called in addition to any other callbacks that are registered in ` Idiomorph.morph ` . Multiple plugins can be registered .
179+ These callbacks will be called in addition to any other callbacks that are registered in ` Idiomorph.morph ` . Multiple plugins can be added .
182180
183181### Setting Defaults
184182
You can’t perform that action at this time.
0 commit comments