Is this a correct syntax?

I thought it shout be written like this:
```javascript
afteredit: {fn: this.refresh, scope: this}
,afterrender: {fn: this. onAfterRender, scope: this}
```