Last active
December 17, 2015 22:59
-
-
Save pbojinov/5686363 to your computer and use it in GitHub Desktop.
Self executing function (class) with some exposed public function
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
/** | |
* If class Petar does not already exist, create a new instance of it | |
*/ | |
window.Petar = window.Petar || {}; | |
Petar.Music = function() { | |
var innerContent; | |
function init() { | |
innerContent = ''; | |
}; | |
return { | |
init: init | |
} | |
}(); | |
Petar.Music.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment