Elgg
Version 2.3
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
25
this._init =
function
() {
26
if
(spec.init) {
27
spec.init();
28
}
29
};
30
}
31
32
return
Plugin;
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 Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11