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

Commit

Permalink
fix(alert): make deprecated controller work with 1.3.x
Browse files Browse the repository at this point in the history
Closes #4576
  • Loading branch information
Foxandxss authored and wesleycho committed Oct 11, 2015
1 parent c5e6042 commit e8c8ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/alert/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ angular.module('ui.bootstrap.alert')
$log.warn('AlertController is now deprecated. Use UibAlertController instead.');
}

return $controller('UibAlertController', {
angular.extend(this, $controller('UibAlertController', {
$scope: $scope,
$attrs: $attrs
});
}));
}])

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

0 comments on commit e8c8ee6

Please sign in to comment.