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

Commit 038157d

Browse files
committed
chore(accordion): simplify controller instantiation
1 parent 001574e commit 038157d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: 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-
angular.extend(this, $controller('UibAccordionController', {
143+
return $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)