pad_editbar: Call the callback asynchronously
This follows JavaScript best practices.pull/5152/head
parent
148e10821b
commit
c629ee09a8
|
@ -245,7 +245,7 @@ exports.padeditbar = {
|
|||
} catch (err) {
|
||||
cbErr = err || new Error(err);
|
||||
} finally {
|
||||
if (cb) cb(cbErr);
|
||||
if (cb) Promise.resolve().then(() => cb(cbErr));
|
||||
}
|
||||
},
|
||||
setSyncStatus: (status) => {
|
||||
|
|
Loading…
Reference in New Issue