Maybe this is a simple question but I could not find anything on google or this site. So if I have
var myNamespace = {
foo: function() {
},
bar: function() {
}
};
how would i load both foo() and bar() without having to do it one by one, e.g.
<script type="text/javascript">
$(document).ready(function(){
myNamespace.foo();
myNamespace.bar();
.
.
.
});
</script>