referencing desired objects in namespaced functions
- by RyOnLife
I'm having trouble referencing the desired object when I've namespaced functions.
No problems here:
obj.test = function() {
// this == obj
}
But I'm getting tripped up when I namespace:
obj.namespace.test = function() {
// this == namespace
}
In the latter example, I know this references namespace, but I want to reference obj. How can I do it?