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

Commit 1e3cbd8

Browse files
Foxandxsswesleycho
authored andcommitted
fix(buttons): make deprecated controller work with 1.3.x
Closes #4577
1 parent e8c8ee6 commit 1e3cbd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buttons/buttons.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ angular.module('ui.bootstrap.buttons')
109109
$log.warn('ButtonsController is now deprecated. Use UibButtonsController instead.');
110110
}
111111

112-
return $controller('UibButtonsController');
112+
angular.extend(this, $controller('UibButtonsController'));
113113
}])
114114

115115
.directive('btnRadio', ['$log', '$buttonsSuppressWarning', function($log, $buttonsSuppressWarning) {

0 commit comments

Comments
 (0)