Skip to content

Instantly share code, notes, and snippets.

@eliza-abraham
Forked from yashprit/ jQuery_app_structure.js
Last active August 29, 2015 14:15
Show Gist options
  • Save eliza-abraham/75b1a28edd97e1b482ff to your computer and use it in GitHub Desktop.
Save eliza-abraham/75b1a28edd97e1b482ff to your computer and use it in GitHub Desktop.
(function(ctx, $, undefined){
$(document).ready(function(){
bindEvent();
})
function bindEvent () {
//private scope for application
}
var _private = {
handlerOne: function () {
},
handlerTwo: function () {
}
}
ctx.intit = function () {
//this is my init function in public scope for application bootstap
};
ctx.processPrivateData = function () {
//this way we will publically
};
})(window.APP = window.APP || {}, jQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment