Created
July 11, 2017 08:11
-
-
Save scdekov/c1363dc1a1fa3342288f53c2c3ab03db 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
function cls() { | |
this.publicFunction1 = function () { | |
return this._helperFunction1(); | |
}; | |
this._helperFunction1 = function (){}; | |
this.publicFunction2 = function () { | |
return this._helperFunction2(); | |
}; | |
this._helperFunction2 = function (){}; | |
} | |
// OR | |
function cls() { | |
this.publicFunction1 = function () { | |
return this._helperFunction1(); | |
}; | |
this.publicFunction2 = function () { | |
return this._helperFunction2(); | |
}; | |
this._helperFunction1 = function (){}; | |
this._helperFunction2 = function (){}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment