Namespace: Plugins

OC.Plugins

Members

(static) _plugins :Array.<OC.Plugin>

Type:
  • Array.<OC.Plugin>
Source:

Methods

(static) attach(targetName, object, optionsopt)

Call attach() on all plugins registered to the given target name.
Parameters:
Name Type Attributes Description
targetName String app name / class name
object Object to be extended
options Object <optional>
options
Source:

(static) detach(targetName, object, optionsopt)

Call detach() on all plugins registered to the given target name.
Parameters:
Name Type Attributes Description
targetName String app name / class name
object Object to be extended
options Object <optional>
options
Source:

(static) getPlugins(targetName) → {Array.<OC.Plugin>}

Returns all plugin registered to the given target name / app name / class name.
Parameters:
Name Type Description
targetName String app name / class name to hook into
Source:
Returns:
array of plugins
Type
Array.<OC.Plugin>

(static) register(targetName, plugin)

Register plugin
Parameters:
Name Type Description
targetName String app name / class name to hook into
plugin OC.Plugin
Source: