diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-26 10:50:31 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-26 10:50:37 +0100 |
commit | 2f666ebec491ebf803af9de15b84e870d9faadb5 (patch) | |
tree | 3496dc674ced063d4997a4be3091be05752be462 /js/build/app.js | |
parent | 526f3378bfd2a8d4f4b890119fd3af2237c800d9 (diff) |
version bump5.1.0
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 19 |
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); |