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

Prevent autoloading from loading already initialized objects #80

Open
szul opened this issue Sep 7, 2017 · 1 comment
Open

Prevent autoloading from loading already initialized objects #80

szul opened this issue Sep 7, 2017 · 1 comment

Comments

@szul
Copy link
Member

szul commented Sep 7, 2017

If custom code is run first, auto-loading can then be prevented from running a second time if someone forgets to add data-m-autoload="false' to their HTML. This would then make the data-m-autoload attribute unnecessary.

@szul
Copy link
Member Author

szul commented Feb 9, 2018

Could be accomplished with a metron.done() function that runs after all the “ready” code is complete. This would eliminate the explicit autoload attributes and the need to call init() on custom code.

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

1 participant