Created
September 1, 2011 02:07
-
-
Save xenophy/1185261 to your computer and use it in GitHub Desktop.
Next JS Class System Private Function
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
// private | |
function _foo = function() { | |
}; | |
module.exports = NX.define('My.Bar', { | |
// public method | |
foo: function() { | |
// private methoed | |
_foo(); | |
} | |
}); |
(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
(function() {
// private
function _foo = function() {
};
module.exports = NX.define('My.Bar', {
});
})();