Skip to content

Instantly share code, notes, and snippets.

@lukesutton
Created March 24, 2010 01:01
Show Gist options
  • Save lukesutton/341864 to your computer and use it in GitHub Desktop.
Save lukesutton/341864 to your computer and use it in GitHub Desktop.
var Horrible = function() {
function horribleInit() {
}
// Stupid shit
horribleInit();
};
var MoreHorrible = function() {
// more stupid shit
};
// pretty init
var inits = [Horrible, MoreHorrible];
document.onReady(function() {
jQuery.each(inits, function(i, f) {
f();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment