Created
May 11, 2012 11:23
-
-
Save miyukki/2659069 to your computer and use it in GitHub Desktop.
ZeroFixFramework#transition support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# transition support | |
# you must add adapted code of "pushState loading" to "zero_fix.refresh" | |
watch_elements = window.document.querySelectorAll('.watch') | |
for element in watch_elements | |
element.addEventListener('click', (event) -> window.zero_fix.refresh ) | |
window.addEventListener('popstate', (event) -> window.zero_fix.refresh ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment