Ghost/core/server/plugins/GhostPlugin.js
Ben Gladwell 69d3a1460d Remove unparam:true from jslint config in Gruntfile.js
issue #1365
- added /*jslint unparam:true*/ to functions where absolutely necessary
- added /*jslint unparam:true*/ to functions in which keeping parameter
  list added clarity to the underlying api, even when those parameters
  are not currently used
- removed unused parameters in a few places
2013-10-31 14:02:34 -04:00

55 lines
1.2 KiB
JavaScript

var GhostPlugin;
/**
* GhostPlugin is the base class for a standard plugin.
* @class
* @parameter {Ghost} The current Ghost app instance
*/
GhostPlugin = function (ghost) {
this.app = ghost;
};
/**
* A method that will be called on installation.
* Can optionally return a promise if async.
* @parameter {Ghost} The current Ghost app instance
*/
GhostPlugin.prototype.install = function (ghost) {
/*jslint unparam:true*/
return;
};
/**
* A method that will be called on uninstallation.
* Can optionally return a promise if async.
* @parameter {Ghost} The current Ghost app instance
*/
GhostPlugin.prototype.uninstall = function (ghost) {
/*jslint unparam:true*/
return;
};
/**
* A method that will be called when the plugin is enabled.
* Can optionally return a promise if async.
* @parameter {Ghost} The current Ghost app instance
*/
GhostPlugin.prototype.activate = function (ghost) {
/*jslint unparam:true*/
return;
};
/**
* A method that will be called when the plugin is disabled.
* Can optionally return a promise if async.
* @parameter {Ghost} The current Ghost app instance
*/
GhostPlugin.prototype.deactivate = function (ghost) {
/*jslint unparam:true*/
return;
};
module.exports = GhostPlugin;