Elgg  Version 3.0
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(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...
elgg require
Throw an error if the required package isn't present.
Definition: elgglib.js:164