Say I have a namespace,
var Namespace = { A : function() { alert('Hello!'); }, B : function() {
In this namespace, I intend to use A as a helper function for B. That is, A () will never be called outside the namespace. It will only be called by functions inside the namespace.
What is the best way to solve a local / helper function problem in a namespace? I see that there are two possibilities:
// Method
In the first method, it is ugly and awkard to type Namespace.A () (repeatedly) in each function in the namespace. This makes me prefer Method No. 2. But I was curious what the best practice was here.
javascript
ktm5124
source share