Skip to content

Instantly share code, notes, and snippets.

@mkalygin
Created August 2, 2013 00:41
Show Gist options
  • Save mkalygin/6136651 to your computer and use it in GitHub Desktop.
Save mkalygin/6136651 to your computer and use it in GitHub Desktop.
JavaScript submodule with jQuery.
var Module = (function (Module, window, $) {
var SubModule = Module.SubModule = Module.SubModule || {};
$.extend(SubModule, {
initialize: function () {
}
});
return Module;
}(Module || {}, window, jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment