Skip to content
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

Fire an event after elementQuery has finished #14

Open
jadus opened this issue May 28, 2014 · 1 comment
Open

Fire an event after elementQuery has finished #14

jadus opened this issue May 28, 2014 · 1 comment

Comments

@jadus
Copy link

jadus commented May 28, 2014

I'm using dotdotdot.js (multiple lines ellipsis) on blocks styled with elementQuery.
The problem is that I have to wait for elementQuery to finish its job if I want to apply dotdotdot.js.

I've added this on line 176 of the prod branch of elementQuery :

$.event.trigger({
    type:"elementQueriesDone",
});

And now I can apply dotdotdot.js when elementQuery has finished.

Don't now how to trigger an event without jQuery, sorry...

And thanks for this great polyfill

@billymoon
Copy link

I need this too, as I want to make my graphs responsive, which require redraw in js after container size changes. I think it is a pretty common use case.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants