Last active
January 10, 2017 15:31
-
-
Save MeanEYE/588bd30d7c583da4eb68a9291d15b7f4 to your computer and use it in GitHub Desktop.
Generic simple JavaScript object.
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
function Class(parameter) { | |
var self = this; | |
self.some_variable = parameter; | |
/** | |
* Complete object initialization. | |
*/ | |
self._init = function() { | |
}; | |
// finalize object | |
self._init(); | |
} | |
var temp = new Class('Test string'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment