react-templates/playground/samples/rt-props.code

9 lines
253 B
Plaintext
Raw Normal View History

2014-12-07 14:13:35 +01:00
{
mixins: [React.addons.LinkedStateMixin],
getProps: function() {
return _.omit(this.props, ['onClick', 'eventId']);
},
reportClick: function(child) {
alert((this.props.eventId || -1) + ':' + child.innerText);
}
}