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

Commit 685bd6a

Browse files
Foxandxsswesleycho
authored andcommitted
fix(tabs): make deprecated controller work with 1.3.x
Closes #4583
1 parent ce1114a commit 685bd6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tabs/tabs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ angular.module('ui.bootstrap.tabs')
301301
$log.warn('TabsetController is now deprecated. Use UibTabsetController instead.');
302302
}
303303

304-
return $controller('UibTabsetController', {
304+
angular.extend(this, $controller('UibTabsetController', {
305305
$scope: $scope
306-
});
306+
}));
307307
}])
308308

309309
.directive('tabset', ['$log', '$tabsSuppressWarning', function($log, $tabsSuppressWarning) {

0 commit comments

Comments
 (0)