Created
February 24, 2013 01:41
-
-
Save machty/5022223 to your computer and use it in GitHub Desktop.
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
Thing = (function() { | |
var Thing = function() { | |
// this.whatever = asd | |
} | |
Thing.prototype.doIt = function() { | |
// Call function that no one has access to. | |
privateDoIt(); | |
} | |
function privateDoIt() { | |
// No one can override this function. | |
} | |
return Thing; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment