File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,10 @@ angular.module('kubernetesUI')
169
169
value : '@' ,
170
170
enableCollapse : '=?' // not intended to be passed in, it will be set depending on jquery availability
171
171
} ,
172
- controller : function ( $scope ) {
172
+ controller : [ "$scope" , function ( $scope ) {
173
173
// If jquery is available
174
174
$scope . enableCollapse = ! ! window . $ ;
175
- } ,
175
+ } ] ,
176
176
link : function ( $scope , element , attrs ) {
177
177
if ( $scope . enableCollapse ) {
178
178
$ ( '.reveal-contents-link' , element ) . click ( function ( evt ) {
Original file line number Diff line number Diff line change @@ -169,10 +169,10 @@ angular.module('kubernetesUI')
169
169
value : '@' ,
170
170
enableCollapse : '=?' // not intended to be passed in, it will be set depending on jquery availability
171
171
} ,
172
- controller : function ( $scope ) {
172
+ controller : [ "$scope" , function ( $scope ) {
173
173
// If jquery is available
174
174
$scope . enableCollapse = ! ! window . $ ;
175
- } ,
175
+ } ] ,
176
176
link : function ( $scope , element , attrs ) {
177
177
if ( $scope . enableCollapse ) {
178
178
$ ( '.reveal-contents-link' , element ) . click ( function ( evt ) {
You can’t perform that action at this time.
0 commit comments