@@ -15,11 +15,9 @@ angular.module('ui.bootstrap.tabs', [])
15
15
} ;
16
16
} )
17
17
18
- . controller ( 'TabsetController' , [ '$scope' , '$element' ,
19
- function TabsetCtrl ( $scope , $element ) {
20
-
18
+ . controller ( 'TabsetController' , [ '$scope' , function TabsetCtrl ( $scope ) {
21
19
var ctrl = this ,
22
- tabs = ctrl . tabs = $scope . tabs = [ ] ;
20
+ tabs = ctrl . tabs = $scope . tabs = [ ] ;
23
21
24
22
ctrl . select = function ( tab ) {
25
23
angular . forEach ( tabs , function ( tab ) {
@@ -176,8 +174,7 @@ function TabsetCtrl($scope, $element) {
176
174
</file>
177
175
</example>
178
176
*/
179
- . directive ( 'tab' , [ '$parse' , '$http' , '$templateCache' , '$compile' ,
180
- function ( $parse , $http , $templateCache , $compile ) {
177
+ . directive ( 'tab' , [ '$parse' , function ( $parse ) {
181
178
return {
182
179
require : '^tabset' ,
183
180
restrict : 'EA' ,
@@ -262,7 +259,7 @@ function($parse, $http, $templateCache, $compile) {
262
259
} ;
263
260
} ] )
264
261
265
- . directive ( 'tabContentTransclude' , [ '$compile' , '$parse' , function ( $compile , $parse ) {
262
+ . directive ( 'tabContentTransclude' , function ( ) {
266
263
return {
267
264
restrict : 'A' ,
268
265
require : '^tabset' ,
@@ -291,9 +288,9 @@ function($parse, $http, $templateCache, $compile) {
291
288
node . tagName . toLowerCase ( ) === 'data-tab-heading'
292
289
) ;
293
290
}
294
- } ] )
291
+ } )
295
292
296
- . directive ( 'tabsetTitles' , [ '$http' , function ( $http ) {
293
+ . directive ( 'tabsetTitles' , function ( ) {
297
294
return {
298
295
restrict : 'A' ,
299
296
require : '^tabset' ,
@@ -310,7 +307,4 @@ function($parse, $http, $templateCache, $compile) {
310
307
}
311
308
}
312
309
} ;
313
- } ] )
314
-
315
- ;
316
-
310
+ } ) ;
0 commit comments