Skip to content

Instantly share code, notes, and snippets.

@mcavaliere
Created December 22, 2015 19:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcavaliere/e564f7c65120fe6282a0 to your computer and use it in GitHub Desktop.
Save mcavaliere/e564f7c65120fe6282a0 to your computer and use it in GitHub Desktop.
// Top level. All reusable code goes somewhere under this main object.
var MyApp = {};
// Widgets, and any components that manipulate the DOM.
MyApp.UI = {};
// Classes that have reusable logic or calculation.
MyApp.Lib = {};
// Custom code that works with external javascript libraries in a reusable way.
MyApp.Vendor = {};
// Generic utilities.
MyApp.Utils = {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment