Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
refactor(accordion): remove unused dependency injections
Browse files Browse the repository at this point in the history
  • Loading branch information
bekos committed Nov 28, 2013
1 parent 4d158e0 commit 79f836c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/accordion/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ angular.module('ui.bootstrap.accordion', ['ui.bootstrap.collapse'])
})

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

Expand Down

0 comments on commit 79f836c

Please sign in to comment.