Skip to content

Instantly share code, notes, and snippets.

@ketanghumatkar
Forked from yashprit/ jQuery_app_structure.js
Last active August 29, 2015 14:12
Show Gist options
  • Save ketanghumatkar/bdff0cdd2145299ec902 to your computer and use it in GitHub Desktop.
Save ketanghumatkar/bdff0cdd2145299ec902 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