R
Robert
Hi,
I have been reading the article at
http://www.crockford.com/javascript/private.html
and I was wondering if there also was some way to be able to have
private methods that can be called from public methods, but not from
outside.
Just throwing an exception if a private method was called from outside
would be sufficient, but I don't know how to determine if the method was
called from outside. Anyone else thought about doing this?
Robert.
I have been reading the article at
http://www.crockford.com/javascript/private.html
and I was wondering if there also was some way to be able to have
private methods that can be called from public methods, but not from
outside.
Just throwing an exception if a private method was called from outside
would be sufficient, but I don't know how to determine if the method was
called from outside. Anyone else thought about doing this?
Robert.