Skip to content

Instantly share code, notes, and snippets.

@VasiliuKr
Last active October 20, 2016 06:52
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 VasiliuKr/eec5b1e23c6e06ad4e022595428d3fce to your computer and use it in GitHub Desktop.
Save VasiliuKr/eec5b1e23c6e06ad4e022595428d3fce to your computer and use it in GitHub Desktop.
JS : module
var myModule = (function () {
var init = function () {
_setUpListeners();
// то, что должно произойти сразу
};
var _setUpListeners = function () {
// прослушка событий...
};
return {
init: init
};
})();
myModule.init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment