Skip to content

Instantly share code, notes, and snippets.

@IOZ
Created February 3, 2014 11:50
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 IOZ/8782598 to your computer and use it in GitHub Desktop.
Save IOZ/8782598 to your computer and use it in GitHub Desktop.
Project pattern
/**
* Application
* @constructor
*/
function App(){
var T = this;
this.body = $("body");
this.doc = $(document);
this.win = $(window);
/**
* Methods
*/
this.init = function(){
T.win.resize(T.resize);
};
this.resize = function(){
};
this.init();
}
$(function(){
var app = new App();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment