Elgg  Version 2.2
Functions
Plugin.js File Reference

Go to the source code of this file.

Functions

 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. More...
 

Function Documentation

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.

Parameters
function(require){functionPlugin(spec){spec=spec||{};this._init=function(){if(spec.init){spec.init();}};}return Plugin;} Constructor
{Object}spec Specification object with keys:
init: {Function} optional function called in plugin order in the elgg/init module,

This is called by elgg/init to initialize the plugin. Do not use.

private