Skip to content

Instantly share code, notes, and snippets.

@sunilw
Created August 11, 2013 02:41
Show Gist options
  • Save sunilw/6203141 to your computer and use it in GitHub Desktop.
Save sunilw/6203141 to your computer and use it in GitHub Desktop.
var myApp = (function (){
myProps = {
foo : function (){
console.log("foo");
},
bar : function (){
console.log("bar");
}
} ;
return this.myProps ;
console.log('myApp initiated');
})() ;
function line () {
console.log("--------------");
}
$(document).ready(function() {
line() ;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment