Skip to content

Instantly share code, notes, and snippets.

@byrichardpowell
Created August 29, 2012 19:14
Show Gist options
  • Save byrichardpowell/3517425 to your computer and use it in GitHub Desktop.
Save byrichardpowell/3517425 to your computer and use it in GitHub Desktop.
jQuery decoration & interaction
$(document).ready(function() {
// Add ALL the decoration
// e.g jquery chosen
_.each(site.decoration, function(decorate) {
decorate();
});
// Attach ALL The site wide interaction
// These interactions are site wide, not specific to certain pages or data
_.each( site.interaction, function( setupInteraction ) {
setupInteraction();
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment