Example: I need create function like object, if i have simple object, i can get it like this:
myObject = function(){
alert('tada');
}
but i need to implement this function or other param inner object like this:
myObject = {
value : function(){
alert('tada!');
}
};
and call this function only by myObject()
, not myObject.value()
, thx