Removed empty init() calls
no issue - `init()` methods that do nothing but call `super()` aren't adding anything but add noise to class/object definitions
This commit is contained in:
parent
65e07109a9
commit
ae4d15d237
@ -19,10 +19,6 @@ export default ModalComponent.extend(ValidationEngine, {
|
||||
|
||||
validationType: 'inviteUser',
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
},
|
||||
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
this.fetchRoles.perform();
|
||||
|
@ -13,10 +13,6 @@ export default ModalComponent.extend({
|
||||
confirm() {},
|
||||
label: computed.and('model', 'model.label'),
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
},
|
||||
|
||||
willDestroyElement() {
|
||||
this._super(...arguments);
|
||||
this.label.errors.clear();
|
||||
|
@ -32,10 +32,6 @@ export default Controller.extend({
|
||||
_scratchFacebook: null,
|
||||
_scratchTwitter: null,
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
},
|
||||
|
||||
privateRSSUrl: computed('config.blogUrl', 'settings.publicHash', function () {
|
||||
let blogUrl = this.get('config.blogUrl');
|
||||
let publicHash = this.get('settings.publicHash');
|
||||
|
@ -30,10 +30,6 @@ export default Controller.extend({
|
||||
|
||||
yamlAccept: null,
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
},
|
||||
|
||||
fromAddress: computed(function () {
|
||||
return this.parseEmailAddress(this.settings.get('membersFromAddress'));
|
||||
}),
|
||||
|
@ -27,10 +27,6 @@ export default Controller.extend({
|
||||
|
||||
yamlAccept: null,
|
||||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
},
|
||||
|
||||
blogDomain: computed('config.blogDomain', function () {
|
||||
let blogDomain = this.config.blogDomain || '';
|
||||
const domainExp = blogDomain.replace('https://', '').replace('http://', '').match(new RegExp('^([^/:?#]+)(?:[/:?#]|$)', 'i'));
|
||||
|
Loading…
Reference in New Issue
Block a user