From 1e3cbd82ed3ac62cc57d0f593cc679dfa9f52e1e Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Sun, 11 Oct 2015 17:21:19 +0200 Subject: [PATCH] fix(buttons): make deprecated controller work with 1.3.x Closes #4577 --- src/buttons/buttons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buttons/buttons.js b/src/buttons/buttons.js index 8a14bf8557..9477e32317 100644 --- a/src/buttons/buttons.js +++ b/src/buttons/buttons.js @@ -109,7 +109,7 @@ angular.module('ui.bootstrap.buttons') $log.warn('ButtonsController is now deprecated. Use UibButtonsController instead.'); } - return $controller('UibButtonsController'); + angular.extend(this, $controller('UibButtonsController')); }]) .directive('btnRadio', ['$log', '$buttonsSuppressWarning', function($log, $buttonsSuppressWarning) {