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

Commit e8c8ee6

Browse files
Foxandxsswesleycho
authored andcommitted
fix(alert): make deprecated controller work with 1.3.x
Closes #4576
1 parent c5e6042 commit e8c8ee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/alert/alert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ angular.module('ui.bootstrap.alert')
3737
$log.warn('AlertController is now deprecated. Use UibAlertController instead.');
3838
}
3939

40-
return $controller('UibAlertController', {
40+
angular.extend(this, $controller('UibAlertController', {
4141
$scope: $scope,
4242
$attrs: $attrs
43-
});
43+
}));
4444
}])
4545

4646
.directive('alert', ['$log', '$alertSuppressWarning', function($log, $alertSuppressWarning) {

0 commit comments

Comments
 (0)