Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > How can I set a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 35539 of 36179
Post > Topic >>

How can I set an object's property read-only to public?

by "Andreas M." <foobar@[EMAIL PROTECTED] > May 9, 2008 at 10:02 AM

I have an object, that contains a status-property. The status gets set 
by a function internal to that object. This function gets invoked as 
/init();/ and sets the status-property of the outer function.

If I make that property world-readable via /this/ it will become 
world-writable, too. Is there any way except of defining a getter 
function to an inner property? I would like to get the property via 
/Object.property/ still.

-- 
Bye,
Andreas M.
 




 3 Posts in Topic:
How can I set an object's property read-only to public?
"Andreas M." &l  2008-05-09 10:02:27 
Re: How can I set an object's property read-only to public?
Gordon <gordon.mcvey@[  2008-05-09 01:40:58 
Re: How can I set an object's property read-only to public?
Jorge <jorge@[EMAIL PR  2008-05-09 01:48:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 19:32:39 CDT 2008.