Skip to content

Instantly share code, notes, and snippets.

@miyukki
Created May 11, 2012 11:23
Show Gist options
  • Save miyukki/2659069 to your computer and use it in GitHub Desktop.
Save miyukki/2659069 to your computer and use it in GitHub Desktop.
ZeroFixFramework#transition support
# 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