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

Commit

Permalink
fix(accordion): make deprecated controller work with 1.3.x
Browse files Browse the repository at this point in the history
Closes #4574
  • Loading branch information
Foxandxss authored and wesleycho committed Oct 11, 2015
1 parent 9e71da8 commit c5e6042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/accordion/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ angular.module('ui.bootstrap.accordion')
$log.warn('AccordionController is now deprecated. Use UibAccordionController instead.');
}

return $controller('UibAccordionController', {
angular.extend(this, $controller('UibAccordionController', {
$scope: $scope,
$attrs: $attrs
});
}));
}])

.directive('accordion', ['$log', '$accordionSuppressWarning', function($log, $accordionSuppressWarning) {
Expand Down

0 comments on commit c5e6042

Please sign in to comment.