Last active
October 20, 2016 06:52
-
-
Save VasiliuKr/eec5b1e23c6e06ad4e022595428d3fce to your computer and use it in GitHub Desktop.
JS : module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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