Giter Site home page Giter Site logo

Comments (4)

sebastien-p avatar sebastien-p commented on July 4, 2024

OK, thanks, I will start working on it by tonight (french time zone).

As I am also working on version 2, live events support will be published as a temporary patch : version 1.0.6.

EDIT 1 :

Due to the way the live method is implemented "DOM traversal methods are not supported for finding elements to send to .live(). Rather, the .live() method should always be called directly after a selector, as in the example above." (source : http://api.jquery.com/live/), it is a little bit more complicated then expected to make jQuery.hasEventListener version 1.0.5 support live events.

So I decided not to release a temporary patch like I previously said but to only add full support for live/delegated events in version 2 (coming soon, about 60% done right now).

EDIT 2 :

I found this link which is very interesting, worth reading : http://stackoverflow.com/questions/4514766/jquery-live-events-and-querying-if-an-element-will-respond-to-an-event

from jquery.haseventlistener.

markjlorenz avatar markjlorenz commented on July 4, 2024

Looking forward to v2.0. Thanks for the great code.
Used your link and built it out a little bit. I hope this is of some help: http://jsfiddle.net/soodesune/abkWg/20/

--Edit-- This code no longer work under jQuery 1.5

from jquery.haseventlistener.

sebastien-p avatar sebastien-p commented on July 4, 2024

Thanks for your concern, sorry I only saw your edit 1 minute ago.

I'm working on it, the hard part is to ensure old jQuery version support for live/delegated events checking ...

But, as for now, the other parts of the API seem to work just great.

from jquery.haseventlistener.

sebastien-p avatar sebastien-p commented on July 4, 2024

Version 2.0 is out with full support for live and delegated events, please go see the API/documentation to know how does this solve the problem.

I guess I can now close this issue.

from jquery.haseventlistener.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.