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

Commit c5e6042

Browse files
Foxandxsswesleycho
authored andcommitted
fix(accordion): make deprecated controller work with 1.3.x
Closes #4574
1 parent 9e71da8 commit c5e6042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/accordion/accordion.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ angular.module('ui.bootstrap.accordion')
140140
$log.warn('AccordionController is now deprecated. Use UibAccordionController instead.');
141141
}
142142

143-
return $controller('UibAccordionController', {
143+
angular.extend(this, $controller('UibAccordionController', {
144144
$scope: $scope,
145145
$attrs: $attrs
146-
});
146+
}));
147147
}])
148148

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

0 commit comments

Comments
 (0)