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

data-persist="garlic" doesn't work after window.load event #108

Open
oppianmatt opened this issue Oct 17, 2017 · 0 comments
Open

data-persist="garlic" doesn't work after window.load event #108

oppianmatt opened this issue Oct 17, 2017 · 0 comments

Comments

@oppianmatt
Copy link

Say we load garlic.js after the window.load event has fired. Then the content marked up with data-persist="garlic" doesn't work since:

    b(window).on("load", function() {
        b('[data-persist="garlic"]').each(function() {
            b(this).garlic()
        })
    })

Doesn't fire. It's not like the jquery dom ready event which triggers even if it already ran.

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

No branches or pull requests

1 participant