|
|
@ -2,12 +2,14 @@ import { isString } from 'underscore'; |
|
|
import TraitView from './TraitView'; |
|
|
import TraitView from './TraitView'; |
|
|
|
|
|
|
|
|
export default TraitView.extend({ |
|
|
export default TraitView.extend({ |
|
|
events: { |
|
|
eventCapture: ['click button'], |
|
|
'click button': 'handleClick' |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
templateInput: '', |
|
|
templateInput: '', |
|
|
|
|
|
|
|
|
|
|
|
onChange() { |
|
|
|
|
|
this.handleClick(); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
handleClick() { |
|
|
handleClick() { |
|
|
const { model, em } = this; |
|
|
const { model, em } = this; |
|
|
const command = model.get('command'); |
|
|
const command = model.get('command'); |
|
|
|