Skip to content

Instantly share code, notes, and snippets.

@scdekov
Created July 11, 2017 08:11
Show Gist options
  • Save scdekov/c1363dc1a1fa3342288f53c2c3ab03db to your computer and use it in GitHub Desktop.
Save scdekov/c1363dc1a1fa3342288f53c2c3ab03db to your computer and use it in GitHub Desktop.
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