0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

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:
Kevin Ansfield 2021-03-29 10:32:03 +01:00
parent 65e07109a9
commit ae4d15d237
5 changed files with 0 additions and 20 deletions

View file

@ -19,10 +19,6 @@ export default ModalComponent.extend(ValidationEngine, {
validationType: 'inviteUser', validationType: 'inviteUser',
init() {
this._super(...arguments);
},
didInsertElement() { didInsertElement() {
this._super(...arguments); this._super(...arguments);
this.fetchRoles.perform(); this.fetchRoles.perform();

View file

@ -13,10 +13,6 @@ export default ModalComponent.extend({
confirm() {}, confirm() {},
label: computed.and('model', 'model.label'), label: computed.and('model', 'model.label'),
init() {
this._super(...arguments);
},
willDestroyElement() { willDestroyElement() {
this._super(...arguments); this._super(...arguments);
this.label.errors.clear(); this.label.errors.clear();

View file

@ -32,10 +32,6 @@ export default Controller.extend({
_scratchFacebook: null, _scratchFacebook: null,
_scratchTwitter: null, _scratchTwitter: null,
init() {
this._super(...arguments);
},
privateRSSUrl: computed('config.blogUrl', 'settings.publicHash', function () { privateRSSUrl: computed('config.blogUrl', 'settings.publicHash', function () {
let blogUrl = this.get('config.blogUrl'); let blogUrl = this.get('config.blogUrl');
let publicHash = this.get('settings.publicHash'); let publicHash = this.get('settings.publicHash');

View file

@ -30,10 +30,6 @@ export default Controller.extend({
yamlAccept: null, yamlAccept: null,
init() {
this._super(...arguments);
},
fromAddress: computed(function () { fromAddress: computed(function () {
return this.parseEmailAddress(this.settings.get('membersFromAddress')); return this.parseEmailAddress(this.settings.get('membersFromAddress'));
}), }),

View file

@ -27,10 +27,6 @@ export default Controller.extend({
yamlAccept: null, yamlAccept: null,
init() {
this._super(...arguments);
},
blogDomain: computed('config.blogDomain', function () { blogDomain: computed('config.blogDomain', function () {
let blogDomain = this.config.blogDomain || ''; let blogDomain = this.config.blogDomain || '';
const domainExp = blogDomain.replace('https://', '').replace('http://', '').match(new RegExp('^([^/:?#]+)(?:[/:?#]|$)', 'i')); const domainExp = blogDomain.replace('https://', '').replace('http://', '').match(new RegExp('^([^/:?#]+)(?:[/:?#]|$)', 'i'));