Skip to content

Instantly share code, notes, and snippets.

@xenophy
Created September 1, 2011 02:07
Show Gist options
  • Save xenophy/1185261 to your computer and use it in GitHub Desktop.
Save xenophy/1185261 to your computer and use it in GitHub Desktop.
Next JS Class System Private Function
// private
function _foo = function() {
};
module.exports = NX.define('My.Bar', {
// public method
foo: function() {
// private methoed
_foo();
}
});
@xenophy
Copy link
Author

xenophy commented Sep 1, 2011

(function() {

// private
var _foo = function() {

};

module.exports = NX.define('My.Bar', {

// public method
foo: function() {

// private methoed
_foo();

}
});

})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment