From e8c8ee6cd200363296c7ba06d237ce155ec5e327 Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Sun, 11 Oct 2015 17:15:52 +0200 Subject: [PATCH] fix(alert): make deprecated controller work with 1.3.x Closes #4576 --- src/alert/alert.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alert/alert.js b/src/alert/alert.js index 5715acca63..e5ace4a081 100644 --- a/src/alert/alert.js +++ b/src/alert/alert.js @@ -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) {