Sha256: 27049e47b076854fe971b4d83aa0b9bf602257cc017d8a98d11a4c5505d6a727

Contents?: true

Size: 1.03 KB

Versions: 132

Compression:

Stored size: 1.03 KB

Contents

/**
	@namespace Holds functionality related to running plugins.
*/
JSDOC.PluginManager = {
}

/**
	@param name A unique name that identifies that plugin.
	@param handlers A collection of named functions. The names correspond to hooks in the core code.
*/
JSDOC.PluginManager.registerPlugin = function(/**String*/name, /**Object*/handlers) {
	if (!defined(JSDOC.PluginManager.plugins))
		/** The collection of all plugins. Requires a unique name for each.
		*/
		JSDOC.PluginManager.plugins = {};
	
	
	JSDOC.PluginManager.plugins[name] = handlers;
}

/**
	@param hook The name of the hook that is being caught.
	@param target Any object. This will be passed as the only argument to the handler whose
	name matches the hook name. Handlers cannot return a value, so must modify the target
	object to have an effect.
*/
JSDOC.PluginManager.run = function(/**String*/hook, /**Mixed*/target) {
	for (var name in JSDOC.PluginManager.plugins) {
		if (defined(JSDOC.PluginManager.plugins[name][hook])) {
			JSDOC.PluginManager.plugins[name][hook](target);
		}
	}
}

Version data entries

132 entries across 131 versions & 14 rubygems

Version Path
hquery-patient-api-1.1.1 doc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
hquery-patient-api-1.1.0 doc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/JSV/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/JSV/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
quentonc-jsdoc_helper-0.0.2 test/ext/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
quentonc-jsdoc_helper-0.0.2 ext/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
sproutit-sproutcore-1.0.20090721145236 vendor/jsdoc/app/lib/JSDOC/PluginManager.js
sproutit-sproutcore-1.0.20090721145251 vendor/jsdoc/app/lib/JSDOC/PluginManager.js
sproutit-sproutcore-1.0.20090721145280 vendor/jsdoc/app/lib/JSDOC/PluginManager.js
sproutit-sproutcore-1.0.20090721145281 vendor/jsdoc/app/lib/JSDOC/PluginManager.js
sproutit-sproutcore-1.0.20090721145282 vendor/jsdoc/app/lib/JSDOC/PluginManager.js
sproutit-sproutcore-1.0.20090721145285 vendor/jsdoc/app/lib/JSDOC/PluginManager.js
sproutit-sproutcore-1.0.203 vendor/jsdoc/app/lib/JSDOC/PluginManager.js
hquery-patient-api-1.0.4 doc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
hquery-patient-api-1.0.3 doc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
hquery-patient-api-1.0.2 doc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
hquery-patient-api-1.0.1 doc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
jsc3d-rails-1.0 vendor/assets/javascripts/tools/doc_generator/app/lib/JSDOC/PluginManager.js
hquery-patient-api-1.0.0 doc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js
hquery-patient-api-0.3.0 doc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js