Consider the following code
var obj = {
"vala" : function(arg){...}
"valb" : obj.vala // because the function to assign here is same in code.
}
I cannot create function outside of obj
object.
I tried "valb" : this.vala
but it didn't work.