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

Commit

Permalink
fix(buttons): make deprecated controller work with 1.3.x
Browse files Browse the repository at this point in the history
Closes #4577
  • Loading branch information
Foxandxss authored and wesleycho committed Oct 11, 2015
1 parent e8c8ee6 commit 1e3cbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buttons/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1e3cbd8

Please sign in to comment.