Last active
October 13, 2015 21:55
-
-
Save IvanofSA/0ada65576ee251f66fac 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 () { | |
_setUpListners(); | |
// то, что должно произойти сразу | |
}; | |
var _setUpListners = function () { | |
//прослушка событий... | |
}; | |
return { | |
init: init | |
}; | |
})(); | |
myModule.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment