-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
No link-hints for click handlers, registered with jQuery.live #1404
Comments
JSFiddle here. Looking at the We can get the registered event listeners from Edit: To communicate the information to the content script, we'll probably want to use a custom event, since (at least in this case) we're dealing with a selector rather than any specific element. |
It is deprecated in favor of I like the idea to hook jQuery functions like #1167. |
That version works fine for me using #1167. You need to Edit: inserted italic text |
OK, so let this particular issue be only about I can see it was deprecated since jQuery 1.7 and removed in 1.9, but as it still being used in such popular sites, we should support it. |
@z0rch can you have a go at implementing it? |
I'll have a look in the next year 😄 |
Just occurred to me, that in general case $(selector).live("click", handlerFn); is translated into $(document).on("click", selector, handlerFn); rather than $(selector).on("click", handlerFn); I feel that's where is the difference, handler is assigned to Will have a more detailed look later on. |
Ahh, nice catch. We should probably guard against
too then, by hooking the Looking forward to seeing your work on this! |
Hey @mrmr1993, I'd like to hear your suggestions on the approach to choose. First of all, keep in mind that the syntax This means that we need some way to remember the selector, and find matching elements by ourselves when a user hits Now, in order to hook the To give you a better insight, here is what roughly happens inside
As you can see, even if we switch for a moment to think about overloading Using this information, do you have any suggestions on how to retrieve those |
I've updated the JSFiddle with my suggested way of hooking the |
Properties... beautiful! Thanks for the hint 👍 |
…ts, that only have delegated events assigned philc#1404
… a container to hold delegated events for children philc#1404
… are listened with deprecated `.live()` function (jQuery 1.7+) philc#1404
…ts, that only have delegated events assigned philc#1404
… a container to hold delegated events for children philc#1404
… are listened with deprecated `.live()` function (jQuery 1.7+) philc#1404
…ts, that only have delegated events assigned philc#1404
… a container to hold delegated events for children philc#1404
… are listened with deprecated `.live()` function (jQuery 1.7+) philc#1404
…ts, that only have delegated events assigned philc#1404
… a container to hold delegated events for children philc#1404
… are listened with deprecated `.live()` function (jQuery 1.7+) philc#1404
Consider the following example:
Press
f
to show link-hints.Expected: There is a link-hint to expand/collapse spoiler.
Actual: There is none.
Tested on both
master
andpost-1.46
.The following code was extracted from the popular Russian-speaking collaborative blog habrahabr.ru, so the impacted number of people for this particular example is rather high.
The text was updated successfully, but these errors were encountered: