From 685bd6a46198e5659cd39ac40f370d34f277aa3c Mon Sep 17 00:00:00 2001 From: Foxandxss Date: Sun, 11 Oct 2015 18:59:22 +0200 Subject: [PATCH] fix(tabs): make deprecated controller work with 1.3.x Closes #4583 --- src/tabs/tabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabs/tabs.js b/src/tabs/tabs.js index dc3383f887..cb68c8df39 100644 --- a/src/tabs/tabs.js +++ b/src/tabs/tabs.js @@ -301,9 +301,9 @@ angular.module('ui.bootstrap.tabs') $log.warn('TabsetController is now deprecated. Use UibTabsetController instead.'); } - return $controller('UibTabsetController', { + angular.extend(this, $controller('UibTabsetController', { $scope: $scope - }); + })); }]) .directive('tabset', ['$log', '$tabsSuppressWarning', function($log, $tabsSuppressWarning) {