Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
elgg
Plugin.js
Go to the documentation of this file.
1
5
define
(
function
(
require
) {
6
16
function
Plugin(spec) {
17
spec = spec || {};
18
24
this._init =
function
() {
25
if
(spec.init) {
26
spec.init();
27
}
28
};
29
}
30
31
return
Plugin;
32
});
33
define
define(function(require){function Plugin(spec){spec=spec||{};this._init=function(){if(spec.init){spec.init();}};}return Plugin;})
If your plugin has a boot module, it must return an instance of the class defined by this module...
require
elgg require
Throw an error if the required package isn't present.
Definition:
elgglib.js:164
Generated on Fri Jan 22 2021 00:00:22 for Elgg by
1.8.11