Skip to content

Instantly share code, notes, and snippets.

@githiro
Created June 3, 2013 23:33
Show Gist options
  • Save githiro/5702370 to your computer and use it in GitHub Desktop.
Save githiro/5702370 to your computer and use it in GitHub Desktop.
JS: Basic template with _self
var _self = {};
_self.$ = {};//jQuery objects container
_self.init = function() {
_self.$.someElem = $("#someElem");
};
$(function() {
_self.init();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment