Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

stopPropagation() works wired on event delegation #718

Closed
chrisyip opened this Issue · 2 comments

3 participants

Chris Yip Thomas Fuchs Mislav Marohnić
Chris Yip

Example: http://jsbin.com/ugadap/6/edit

Problems:

When A.2 is clicked, click events will be fired on two divs, both A.1 and A.2 are in pink. The stopPropagation() doesn't take any effects.

When A.1 is clicked, click event that should only be fired on A.2 is fired, A.1 should in red not pink.

The behavior in box B are the correct one: event is stopped correctly, fired on correct element.

Mislav Marohnić mislav was assigned
Thomas Fuchs
Owner

I'm not sure what doesn't work, as the tests don't include information about what the expected behavior is. I'm closing this, but will reopen if there's a better description.

Thomas Fuchs madrobby closed this
Chris Yip

@madrobby Sorry. I updated the description. My English is so poor, I'm not sure if I made it clear enough. If you take a look at the example, you will understand the difference between Zepto and jQuery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.