Commit b1d549ccd725b28e3b366e4499616e6eb620a318
1 parent
6b9994a5
Exists in
master
and in
1 other branch
Remove unused parameters
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
src/app/components/noosfero/blocks/block.directive.js
@@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
13 | block: '=', | 13 | block: '=', |
14 | owner: '=' | 14 | owner: '=' |
15 | }, | 15 | }, |
16 | - link: function(scope, element, attrs) { | 16 | + link: function(scope, element) { |
17 | var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); | 17 | var blockName = scope.block.type.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); |
18 | element.replaceWith($compile('<noosfero-'+blockName+' block="block" owner="owner"></noosfero-'+blockName+'>')(scope)); | 18 | element.replaceWith($compile('<noosfero-'+blockName+' block="block" owner="owner"></noosfero-'+blockName+'>')(scope)); |
19 | } | 19 | } |
src/app/components/noosfero/blocks/link-list.directive.js
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | return directive; | 22 | return directive; |
23 | 23 | ||
24 | /** @ngInject */ | 24 | /** @ngInject */ |
25 | - function LinkListBlockController(moment) { | 25 | + function LinkListBlockController() { |
26 | var vm = this; | 26 | var vm = this; |
27 | vm.links = vm.block.settings.links; | 27 | vm.links = vm.block.settings.links; |
28 | } | 28 | } |
src/app/components/noosfero/blocks/profile-image.directive.js
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | return directive; | 22 | return directive; |
23 | 23 | ||
24 | /** @ngInject */ | 24 | /** @ngInject */ |
25 | - function ProfileImageBlockController(moment) { | 25 | + function ProfileImageBlockController() { |
26 | var vm = this; | 26 | var vm = this; |
27 | vm.profile = vm.owner; | 27 | vm.profile = vm.owner; |
28 | } | 28 | } |