summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js19
1 files changed, 1 insertions, 18 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 733c5b2e5..8b560f0a0 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -2402,32 +2402,15 @@ window.News = window.News || {};
'use strict';
var articleActionPlugins = [];
- var articleActionPluginsById = {};
-
-
- /**
- * @param function action An article action plugin should look like this:
- * function (article, baseUrl) {
- * this.title = 'A title that is displayed on hover';
- * this.iconUrl = 'An url for the icon';
- * this.onClick = function (event, element) {
- *
- * };
- * }
- */
+
exports.addArticleAction = function (action) {
articleActionPlugins.push(action);
- articleActionPluginsById[action.id] = action;
};
exports.getArticleActionPlugins = function () {
return articleActionPlugins;
};
- exports.getArticleActionPluginById = function (id) {
- return articleActionPluginsById[id];
- };
-
})(window, document, jQuery, window.News);