Search a javascript object for a property with a specific value?
<p>I have a javascript object, and I want to <strike>recursively</strike> search it to find any properties that contain a specific value.</p>

<p>The javascript I'm working with has been minified, and is not so easy to trace through.</p>

<p><strong>Background</strong></p>

<p>I'm using the Bing Maps AJAX SDK. It has the ability to add additional tile layers. Each tilelayer has a tilesource object, which specifies the URI format for the tile URL.</p>

<p>I've ran into a problem where the tilesource URI is created once, and cached. Thus I can't dynamically change the parameters of the URL (for example, to change the colors of the tile overlay based on the time of day) for each request.</p>

<p>Note that this behavior is different that Google's Map API, and the Bing Maps api for WP7, which both allow you to dynamically create the URL for each tile request.</p>

<p>The cached URI is looked up, and two specific parameters are replaced, then the URI is used to fetch the tile. </p>

<p>Since this is javascript, I'd like to find the cached URI, and replace it with a function, that instead dynamically builds the URI, and returns it.</p>

<p>I don't need to do this each runtime, just want and idea of where the property is being cached, so I can write code to hax0r it.</p>

<p><strong>Original Question</strong></p>

<p>If I set the URI to some value like "floobieblaster", when I set a breakpoint, can I search the javascript object recursively for "floobieblaster" and get the property that is storing that value?</p>

<p><strong>Edit to add</strong></p>

<p>The object I'm searching appears to have a circular reference, thus any recursive code will likely cause a stackoverflow.</p>

<p>Are there any editor/debugger tricks I could make use of?</p>
