Last active
August 29, 2015 14:27
-
-
Save artemrogov/d79361f360692e1416b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 _inArtem = 'Вызов метода из публичных!'; | |
var init = function() { | |
_setUpListners(); | |
}; | |
var _setUpListners = function() { | |
//прослушка событий | |
/* | |
Здесь пишут то, что должно произойти сразу! | |
*/ | |
console.log('Привет мир!!') | |
} | |
return { // тут находятся публичные методы или поля | |
init:init, | |
someMethod: function() { | |
console.log(_inArtem); | |
} | |
}; | |
})(); | |
myModule.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment