Skip to content

choose fails on this code example #23

@jashmenn

Description

@jashmenn

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions