Skip to content

Commit 79f836c

Browse files
committed
refactor(accordion): remove unused dependency injections
1 parent 4d158e0 commit 79f836c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/accordion/accordion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse'])
5454
})
5555

5656
// The accordion-group directive indicates a block of html that will expand and collapse in an accordion
57-
.directive('accordionGroup', ['$parse', '$transition', '$timeout', function($parse, $transition, $timeout) {
57+
.directive('accordionGroup', ['$parse', function($parse) {
5858
return {
5959
require:'^accordion', // We need this directive to be inside an accordion
6060
restrict:'EA',
6161
transclude:true, // It transcludes the contents of the directive into the template
6262
replace: true, // The element containing the directive will be replaced with the template
6363
templateUrl:'template/accordion/accordion-group.html',
6464
scope:{ heading:'@' }, // Create an isolated scope and interpolate the heading attribute onto this scope
65-
controller: ['$scope', function($scope) {
65+
controller: function() {
6666
this.setHeading = function(element) {
6767
this.heading = element;
6868
};
69-
}],
69+
},
7070
link: function(scope, element, attrs, accordionCtrl) {
7171
var getIsOpen, setIsOpen;
7272

0 commit comments

Comments
 (0)