3
Extensions allow Fauxton views to be have extra functionality.
5
A module registers an extension by
7
FauxtonAPI.registerExtension('extensionName', myObjectToRegister);
9
Any other module wanting to use that extension can then get
10
all objects registered for an extension by:
12
var extensions = FauxtonAPI.getExtensions('extensionName');
13
// extensions will always be an array
15
The module can then use those extensions to extend its functionality.
16
An example of extensions in the compaction module (app/addons/compaction/base.js)
17
and in documents module (app/modules/documents/views line 1003)