-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match event.target ancestors in $.delegate
#109
Match event.target ancestors in $.delegate
#109
Conversation
Use `closest` instead of `matches` to allow checking the target element itself, as well as its ancestors.
Not exactly sure why the tests are failing... |
looks like |
That's what the tests seem to indicate, but I'm not sure why, or in which cases Just tested this in the browser, and it seems to be okay. Any hint on how to go about fixing this will be much appreciated. |
Any ideas @zdfs, @dperrymorrow ? |
I'll attempt to take a look today. |
not sure, |
So the problem is that the tests are running on Chromium 37 but Shouldn't it be testing on latest ? |
karma is using the chrome form my understanding is that the chrome launcher merely launches whatever chrome you have on your system. On Travis however, its using this... Is there a discrepancy there? |
I saw Chromium 37 on Travis. The karma conf seems good to me! I am not sure if there is a way to tell travis to use latest chrome. http://swizec.com/blog/how-to-run-javascript-tests-in-chrome-on-travis/swizec/6647 |
I haven't installed a custom version of Chrome on Travis. I'm just using what the VM already has. I think it's possible to install our own version, but like everything else, I'd have to figure out how to do it. |
They do have updated version of Chrome according to the Build Env Updates - Probably need to change in travis.yml. It says it's available as The one we have specifies Chromium. Should that be now |
I'm going to fork a branch and work on this. I'll create a separate ticket. |
Rebuilding this to see if it passes after getting the latest Chrome on the Travis box. |
This doesn't seem to be using the latest |
I think @TxHawks needs to pull once from upstream and then send the PR again? |
Sounds about right. |
…ng-events Merging in changes to update chrome so that tests will pass
Done. All test pass now |
Are we sure we want to do this? |
I think using As I've mentioned in #108, there is a really tiny polyfill for Considering the value of using |
I’m very willing to merge this, but we need to first solve #108 by including instructions for polyfill.io in our browser support section. We should also include a before & after browser support table. |
…delegating-events Match event.target ancestors in `$.delegate`
Should we update readme's browser support table with specifying that's inclusive of the polyfills? |
@praveenpuglia I think that's a good idea. Otherwise, we'll have to keep addressing the assumption. |
Use
closest
instead ofmatches
to allow checkingthe target element itself, as well as its ancestors.