Apply new ESLint rules to legacy code
This commit is contained in:
parent
91cf075697
commit
8a2c17f65f
70 changed files with 376 additions and 516 deletions
|
@ -5,8 +5,6 @@
|
|||
|
||||
// eslint-disable-next-line func-names
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
window.Whisper = window.Whisper || {};
|
||||
|
||||
window.Whisper.ReactWrapperView = Backbone.View.extend({
|
||||
|
@ -66,12 +64,13 @@
|
|||
});
|
||||
},
|
||||
augmentProps(props) {
|
||||
return Object.assign({}, props, {
|
||||
return {
|
||||
...props,
|
||||
close: () => {
|
||||
this.remove();
|
||||
},
|
||||
i18n,
|
||||
});
|
||||
};
|
||||
},
|
||||
remove() {
|
||||
if (this.onClose) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue