<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - rolandog</title>
<link>http://snipplr.com/users/rolandog/tags/Objects</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 16 Feb 2012 04:46:53 GMT</pubDate>
<item>
<title>(JavaScript) Public properties for Objects in Javascript</title>
<link>http://snipplr.com/view/513/public-properties-for-objects-in-javascript/</link>
<description><![CDATA[ <p>This function allows an object's property names to be read by using an index. The properties can be accessed like: someobject.propertyNames[0] or someobject.propertyValues[0]. But you first have to make the object's properties available by calling someobject.makePublic(['name1','name2','name3',...,'nameN']). The array in the makePublic function is an array of the names of the properties you'd like to make available. Perhaps you're only interested in ['foo','bar']. This is useful for situations where you don't explicitly know if an object carries all properties, but you have an array of all the possible properties available.</p> ]]></description>
<pubDate>Wed, 19 Jul 2006 12:27:30 GMT</pubDate>
<guid>http://snipplr.com/view/513/public-properties-for-objects-in-javascript/</guid>
</item>
</channel>
</rss>
