summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-01-31 18:30:52 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-02-01 07:58:07 +0100
commit3d1a3b66442698601597d4f777d47d5f0ea744c2 (patch)
treea44609185e85074414a60dfe62a0936d75adb600 /core/js/js.js
parent4846aea9517d1bda4293e3064179f777c1d07aa1 (diff)
downloadnextcloud-server-3d1a3b66442698601597d4f777d47d5f0ea744c2.tar.gz
nextcloud-server-3d1a3b66442698601597d4f777d47d5f0ea744c2.zip
Move OC.Plugin to the server bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js90
1 files changed, 0 insertions, 90 deletions
diff --git a/core/js/js.js b/core/js/js.js
index c542e95cad0..114f51bd535 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -871,96 +871,6 @@ Object.assign(window.OC, {
});
/**
- * Current user attributes
- *
- * @typedef {Object} OC.CurrentUser
- *
- * @property {String} uid user id
- * @property {String} displayName display name
- */
-
-/**
- * @namespace OC.Plugins
- */
-OC.Plugins = {
- /**
- * @type Array.<OC.Plugin>
- */
- _plugins: {},
-
- /**
- * Register plugin
- *
- * @param {String} targetName app name / class name to hook into
- * @param {OC.Plugin} plugin
- */
- register: function(targetName, plugin) {
- var plugins = this._plugins[targetName];
- if (!plugins) {
- plugins = this._plugins[targetName] = [];
- }
- plugins.push(plugin);
- },
-
- /**
- * Returns all plugin registered to the given target
- * name / app name / class name.
- *
- * @param {String} targetName app name / class name to hook into
- * @return {Array.<OC.Plugin>} array of plugins
- */
- getPlugins: function(targetName) {
- return this._plugins[targetName] || [];
- },
-
- /**
- * Call attach() on all plugins registered to the given target name.
- *
- * @param {String} targetName app name / class name
- * @param {Object} object to be extended
- * @param {Object} [options] options
- */
- attach: function(targetName, targetObject, options) {
- var plugins = this.getPlugins(targetName);
- for (var i = 0; i < plugins.length; i++) {
- if (plugins[i].attach) {
- plugins[i].attach(targetObject, options);
- }
- }
- },
-
- /**
- * Call detach() on all plugins registered to the given target name.
- *
- * @param {String} targetName app name / class name
- * @param {Object} object to be extended
- * @param {Object} [options] options
- */
- detach: function(targetName, targetObject, options) {
- var plugins = this.getPlugins(targetName);
- for (var i = 0; i < plugins.length; i++) {
- if (plugins[i].detach) {
- plugins[i].detach(targetObject, options);
- }
- }
- },
-
- /**
- * Plugin
- *
- * @todo make this a real class in the future
- * @typedef {Object} OC.Plugin
- *
- * @property {String} name plugin name
- * @property {Function} attach function that will be called when the
- * plugin is attached
- * @property {Function} [detach] function that will be called when the
- * plugin is detached
- */
-
-};
-
-/**
* @namespace OC.search
*/
OC.search.customResults = {};