From 1ddbdffdb957992e1a32d001c5583de46e154662 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 25 Jan 2015 18:22:19 +0100 Subject: Break client side plugin API to combat limitations that make it hard to impossible to get the DOM element --- js/build/app.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'js/build/app.js') diff --git a/js/build/app.js b/js/build/app.js index ece6ba3cc..06b18f019 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -2491,12 +2491,14 @@ app.directive('newsArticleActions', function () { 'article': '=' }, replace: true, - link: function (scope) { - scope.plugins = News.getArticleActionPlugins(); - scope.pluginClick = function (pluginId, event, article) { - News.getArticleActionPluginById(pluginId) - .onClick(event, article); - }; + link: function (scope, elem) { + var plugins = News.getArticleActionPlugins(); + scope.plugins = []; + + for (var i=0; i