File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ export class UploadEditor extends AbstractEditor {
229
229
}
230
230
231
231
this . options . upload_handler ( this . path , file , {
232
- success ( url ) {
232
+ success : ( url ) => {
233
233
this . setValue ( url )
234
234
235
235
if ( this . parent ) this . parent . onChildEditorChange ( this )
@@ -238,12 +238,12 @@ export class UploadEditor extends AbstractEditor {
238
238
if ( this . progressBar ) this . preview . removeChild ( this . progressBar )
239
239
uploadButton . removeAttribute ( 'disabled' )
240
240
} ,
241
- failure ( error ) {
241
+ failure : ( error ) => {
242
242
this . theme . addInputError ( this . uploader , error )
243
243
if ( this . progressBar ) this . preview . removeChild ( this . progressBar )
244
244
uploadButton . removeAttribute ( 'disabled' )
245
245
} ,
246
- updateProgress ( progress ) {
246
+ updateProgress : ( progress ) => {
247
247
if ( this . progressBar ) {
248
248
if ( progress ) this . theme . updateProgressBar ( this . progressBar , progress )
249
249
else this . theme . updateProgressBarUnknown ( this . progressBar )
You can’t perform that action at this time.
0 commit comments