Skip to content

API: New Mochi load/unload hooks naming convention #183

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
codeworksdev opened this issue May 22, 2018 · 0 comments
Closed

API: New Mochi load/unload hooks naming convention #183

codeworksdev opened this issue May 22, 2018 · 0 comments

Comments

@codeworksdev
Copy link
Owner

codeworksdev commented May 22, 2018

Related to issue #124, but now with a slightly altered naming convention for the load and unload hooks (i.e., functions). See below for updated names.

RENAMED LOAD/UNLOAD HOOKS

Note: The following hooks are sorted by order of execution.

mochi_page0_unload  -> mochi_unload_page0
mochi_page0_load    -> mochi_load_page0
mochi_view0_unload  -> mochi_unload_view0
mochi_view0_load    -> mochi_load_view0

Note: The hooks listed above are dynamic hooks, as well as their _unload variants. The number in the name corresponds to the data-page and data-view attributes in <html>, and are executed automatically, either by page load (i.e., in the onload event), or when the data attributes change.

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

No branches or pull requests

1 participant