Created
August 25, 2009 08:50
-
-
Save ardcore/174547 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 MyClass; | |
(function() { | |
MyClass = function() { | |
this.val = 2; | |
} | |
MyClass.prototype.publicFunction = function() { | |
return privateFunction.call(this); | |
} | |
privateFunction = function() { | |
return this.val + " is the value of val"; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment