Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var foo = function () {
- this.init = function () {
- // Stuff that happens on creation
- };
- this.reinit = function () {
- this.init()
- };
- this.init();
- };
- // Create
- var newThing = new foo();
- // Later on ...
- newThing.reinit();
Add Comment
Please, Sign In to add comment