diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-25 18:38:56 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-25 18:38:56 +0100 |
commit | 368697b24bd28fdbead03435fe3656f1fc337836 (patch) | |
tree | 89f5791055163132a33d9961036b39ce3a288f83 /js/build/app.js | |
parent | 1ddbdffdb957992e1a32d001c5583de46e154662 (diff) |
more plugin refactoring
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/js/build/app.js b/js/build/app.js index 06b18f019..733c5b2e5 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -2486,18 +2486,14 @@ app.directive('newsArticleActions', function () { 'use strict'; return { restrict: 'E', - templateUrl: 'articleaction.html', scope: { 'article': '=' }, - replace: true, link: function (scope, elem) { var plugins = News.getArticleActionPlugins(); - scope.plugins = []; for (var i=0; i<plugins.length; i+=1) { - var plugin = new plugins[i](elem, scope.article); - scope.plugins.push(plugin); + plugins[i](elem, scope.article); } } }; |