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:
parent
65e07109a9
commit
ae4d15d237
5 changed files with 0 additions and 20 deletions
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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');
|
||||||
|
|
|
@ -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'));
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -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'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue