Skip to content

Instantly share code, notes, and snippets.

@Marak
Created December 19, 2009 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marak/260277 to your computer and use it in GitHub Desktop.
Save Marak/260277 to your computer and use it in GitHub Desktop.
/* helper method for parsing dynamic CSS, waiting for jquery.require() >.< */
function parseCSS(id,css){
for(style in css){
if(typeof css[style] == 'object'){parseCSS(style,css[style]);
else{$(id).css(style,css[style]);}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment