Skip to content

Problem while trying to attach event handlers #10

@dortheimer

Description

@dortheimer

When trying to apply custom event handlers, sometimes the html isn't ready and they aren't attached.

$('.rating-input').on('mouseenter', 'i', function () {
 // do some cool stuff
});

This happens due to the asynchronous nature of the execution on the code.
I think that the best way to fix it is to add some custom events to the library like:
[ ] Ready - After html rendered
[ ] Mouse over
[ ] Mouse out
[ ] Mouse click

I can add there handlers if my changes are accepted..

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions