File tree Expand file tree Collapse file tree 2 files changed +5
-20
lines changed
app/code/Magento/Ui/view/base/web/js/form/components Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ define([
21
21
* Calls initListeners and pushParams methods.
22
22
*/
23
23
initialize : function ( ) {
24
- _ . bindAll ( this , 'onChildrenUpdate' , 'onContentLoading' , 'onContentLoaded' ) ;
24
+ _ . bindAll ( this , 'onChildrenUpdate' , 'onContentLoading' ) ;
25
25
26
26
return this . _super ( ) ;
27
27
} ,
@@ -49,8 +49,7 @@ define([
49
49
50
50
elem . on ( {
51
51
'update' : this . onChildrenUpdate ,
52
- 'loading' : this . onContentLoading ,
53
- 'loaded' : this . onContentLoaded
52
+ 'loading' : this . onContentLoading
54
53
} ) ;
55
54
56
55
return this ;
@@ -75,15 +74,8 @@ define([
75
74
/**
76
75
* Callback that sets loading property to true.
77
76
*/
78
- onContentLoading : function ( ) {
79
- this . loading ( true ) ;
80
- } ,
81
-
82
- /**
83
- * Callback that sets loading property to true.
84
- */
85
- onContentLoaded : function ( ) {
86
- this . loading ( false ) ;
77
+ onContentLoading : function ( isLoading ) {
78
+ this . loading ( isLoading ) ;
87
79
}
88
80
} ) ;
89
81
} ) ;
Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ define([
14
14
content : '' ,
15
15
showSpinner : false ,
16
16
loading : false ,
17
- template : 'ui/content/content' ,
18
- listens : {
19
- loading : 'toggleLoadState'
20
- }
17
+ template : 'ui/content/content'
21
18
} ,
22
19
23
20
/**
@@ -83,10 +80,6 @@ define([
83
80
}
84
81
} ,
85
82
86
- toggleLoadState : function ( value ) {
87
- this . trigger ( value ? 'loading' : 'loaded' ) ;
88
- } ,
89
-
90
83
/**
91
84
* Defines if instance has 'content' property defined.
92
85
*
You can’t perform that action at this time.
0 commit comments