addyosmani/todomvc — comment on commit bfff7df807d0e8668c5f16aceee9612a5c7139de
File: architecture-examples/extjs/js/view/TaskCompleteButton.js line 6
By sindresorhus:

This could be simplified, by extending `Ext.Button` instead:

```javascript
Ext.define('Todo.view.TaskCompleteButton' , {
extend: 'Ext.Button',
alias: 'widget.completeButton',
tpl: new Ext.XTemplate('{text}', {compiled: true}),
setText: function (text) {
this.update({text:text});
}
});
```