Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit b37fea9

Browse files
author
Nico Blum
committed
added example for inheritance
1 parent 34f9649 commit b37fea9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ which is designed for easy-to-use implementation purpose in "oldschool" multipag
2020
1. [Mounting plugins](#mounting-plugins)
2121
1. [Configuring plugins](#configure-plugins)
2222
1. [Global messages](#global-messages)
23+
1. [Extending a Plugin (inheritance)](#extending-a-plugin-inheritance)
2324
1. [Dynamic (un)mounting](#dynamic-unmounting)
2425
1. [Best practices](#best-practices)
2526
1. [Building your project](#building-your-project)
@@ -266,8 +267,8 @@ All the listeners which have been registered using bindSystemMessage will be des
266267

267268
### Extending a Plugin (inheritance)
268269

269-
Extending a plugin is still simple. Every plugin in the examples extends the base plugin "Plugin".
270-
Using an Alerter Plugin again as example:
270+
Extending a plugin is still simple. Every plugin in the example extends the base plugin "Plugin".
271+
To extend our own plugin we use an Alerter again as example:
271272

272273
``` javascript
273274
define(['Plugin', 'Window'], function (Plugin, Window) {
@@ -285,7 +286,7 @@ define(['Plugin', 'Window'], function (Plugin, Window) {
285286
});
286287
```
287288

288-
Now we implement a SpecialAlerter Plugin:
289+
Now we implement a SpecialAlerter:
289290

290291
``` javascript
291292
define(['plugins/Alerter'], function (Alerter) {

0 commit comments

Comments
 (0)