Skip to content

Instantly share code, notes, and snippets.

@palanglung
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palanglung/6e993b50e4e72007255b to your computer and use it in GitHub Desktop.
Save palanglung/6e993b50e4e72007255b to your computer and use it in GitHub Desktop.
Sample Code
// FiLE: app/js/main.js
(function(window, document){
window.HalalData = {
Views: {}
}
document.onready = function() {
}
})(this, this.document);
// FILE: app/js/views/sample.js
(function(HalalData){
HalalData.Views = HalalData.Views || {};
HalalData.Views.Sample = Backbone.View.extend({
// do code
});
})(this.HalalData);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment