Elgg  Version 2.2
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(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