Skip to content

Commit a8f2f1e

Browse files
committed
Fix dependency injection of kubernetesObjectDescriber directive
Otherwise this breaks when we minify.
1 parent b4de7f4 commit a8f2f1e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

dist/object-describer.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ angular.module('kubernetesUI')
3939

4040
return new KubernetesObjectDescriber();
4141
}])
42-
.directive("kubernetesObjectDescriber", function(KubernetesObjectDescriber, $templateCache, $compile) {
42+
.directive("kubernetesObjectDescriber", [
43+
"KubernetesObjectDescriber",
44+
"$templateCache",
45+
"$compile",
46+
function(KubernetesObjectDescriber, $templateCache, $compile) {
4347
return {
4448
restrict: 'E',
4549
scope: {
@@ -66,7 +70,7 @@ angular.module('kubernetesUI')
6670
});
6771
}
6872
}
69-
})
73+
}])
7074
.directive("kubernetesObjectDescribeLabels", function() {
7175
return {
7276
restrict: 'E',

object-describer.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ angular.module('kubernetesUI')
3939

4040
return new KubernetesObjectDescriber();
4141
}])
42-
.directive("kubernetesObjectDescriber", function(KubernetesObjectDescriber, $templateCache, $compile) {
42+
.directive("kubernetesObjectDescriber", [
43+
"KubernetesObjectDescriber",
44+
"$templateCache",
45+
"$compile",
46+
function(KubernetesObjectDescriber, $templateCache, $compile) {
4347
return {
4448
restrict: 'E',
4549
scope: {
@@ -66,7 +70,7 @@ angular.module('kubernetesUI')
6670
});
6771
}
6872
}
69-
})
73+
}])
7074
.directive("kubernetesObjectDescribeLabels", function() {
7175
return {
7276
restrict: 'E',

0 commit comments

Comments
 (0)