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

Commit 0b5ca78

Browse files
bekospkozlowski-opensource
authored andcommitted
refactor(tabs): remove unused dependency injections
Closes #1009
1 parent a5577f8 commit 0b5ca78

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

src/tabs/tabs.js

+7-13
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ angular.module('ui.bootstrap.tabs', [])
1515
};
1616
})
1717

18-
.controller('TabsetController', ['$scope', '$element',
19-
function TabsetCtrl($scope, $element) {
20-
18+
.controller('TabsetController', ['$scope', function TabsetCtrl($scope) {
2119
var ctrl = this,
22-
tabs = ctrl.tabs = $scope.tabs = [];
20+
tabs = ctrl.tabs = $scope.tabs = [];
2321

2422
ctrl.select = function(tab) {
2523
angular.forEach(tabs, function(tab) {
@@ -176,8 +174,7 @@ function TabsetCtrl($scope, $element) {
176174
</file>
177175
</example>
178176
*/
179-
.directive('tab', ['$parse', '$http', '$templateCache', '$compile',
180-
function($parse, $http, $templateCache, $compile) {
177+
.directive('tab', ['$parse', function($parse) {
181178
return {
182179
require: '^tabset',
183180
restrict: 'EA',
@@ -262,7 +259,7 @@ function($parse, $http, $templateCache, $compile) {
262259
};
263260
}])
264261

265-
.directive('tabContentTransclude', ['$compile', '$parse', function($compile, $parse) {
262+
.directive('tabContentTransclude', function() {
266263
return {
267264
restrict: 'A',
268265
require: '^tabset',
@@ -291,9 +288,9 @@ function($parse, $http, $templateCache, $compile) {
291288
node.tagName.toLowerCase() === 'data-tab-heading'
292289
);
293290
}
294-
}])
291+
})
295292

296-
.directive('tabsetTitles', ['$http', function($http) {
293+
.directive('tabsetTitles', function() {
297294
return {
298295
restrict: 'A',
299296
require: '^tabset',
@@ -310,7 +307,4 @@ function($parse, $http, $templateCache, $compile) {
310307
}
311308
}
312309
};
313-
}])
314-
315-
;
316-
310+
});

0 commit comments

Comments
 (0)