File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
app/code/Magento/Ui/view/base/web
templates/form/components Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ define([
45
45
46
46
elem . activate ( ) ;
47
47
48
- this . trigger ( 'update' ) ;
48
+ this . bubble ( 'update' ) ;
49
49
50
50
return this ;
51
51
} ,
@@ -151,11 +151,11 @@ define([
151
151
* Since this method is used by 'click' binding,
152
152
* it requires function to invoke.
153
153
*/
154
- removeChild : function ( elem ) {
154
+ removeAddress : function ( elem ) {
155
155
var confirmed = confirm ( this . removeMessage ) ;
156
156
157
157
if ( confirmed ) {
158
- this . _removeChild ( elem ) ;
158
+ this . _removeAddress ( elem ) ;
159
159
}
160
160
} ,
161
161
@@ -166,7 +166,7 @@ define([
166
166
*
167
167
* @param {Object } elem - Element to remove.
168
168
*/
169
- _removeChild : function ( elem ) {
169
+ _removeAddress : function ( elem ) {
170
170
var isActive = elem . active ( ) ,
171
171
first ;
172
172
@@ -178,7 +178,7 @@ define([
178
178
first . activate ( ) ;
179
179
}
180
180
181
- this . trigger ( 'update' ) ;
181
+ this . bubble ( 'update' ) ;
182
182
}
183
183
} ) ;
184
184
} ) ;
Original file line number Diff line number Diff line change 10
10
<!-- ko foreach: { data: element.elems, as: 'element' } -->
11
11
< li class ="address-list-item " data-bind ="css: { 'ui-state-active': element.active }, click: activate ">
12
12
< div class ="address-list-item-actions ">
13
- < button class ="action-delete " type ="button " data-bind ="click: $parent.removeChild .bind($parent, element) ">
13
+ < button class ="action-delete " type ="button " data-bind ="click: $parent.removeAddress .bind($parent, element) ">
14
14
< span data-bind ="text: $parent.removeLabel "> </ span >
15
15
</ button >
16
16
</ div >
42
42
</ div >
43
43
</ div >
44
44
<!-- /ko -->
45
- </ div >
45
+ </ div >
You can’t perform that action at this time.
0 commit comments