Created
March 24, 2010 01:01
-
-
Save lukesutton/341864 to your computer and use it in GitHub Desktop.
This file contains 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
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