-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
Given the following javascript:
const TimersDashboard = React.createClass({
handleEditFormSubmit: function (attrs) {
this.updateTimer(attrs);
},
handleTrashClick: function (timerId) {
this.deleteTimer(timerId);
},
createTimer: function (timer) {
const t = helpers.newTimer(timer);
this.setState({
timers: this.state.timers.concat(t),
});
},
deleteTimer: function (timerId) {
this.setState({
timers: this.state.timers.filter((t => t.id !== timerId)),
});
}
});
We need to pick the range from handleTrackClick
to deleteTimer
.
The following query doesnt work:
(.TimersDashboard .handleTrashClick)-(choose(.deleteTimer, 1))
acco