UVASOMIT / metron

JavaScript convenience library and framework written in TypeScript.
MIT License
6 stars 7 forks source link

Prevent autoloading from loading already initialized objects #80

Open szul opened 7 years ago

szul commented 7 years ago

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 commented 6 years ago

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.