<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx</link><description>If you've looked at the debug version of our JavaScript files, you may have noticed code similar to that: Foo.Bar = function Foo$Bar() { Foo.Bar.initializeBase( this ); } function Foo$Bar$baz() { // Do something } Foo.Bar. prototype = { baz: Foo$Bar$baz</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>A JavaScript Stack Trace in ASP.NET AJAX &amp;laquo; See Joel Program</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#5711837</link><pubDate>Tue, 05 Feb 2008 03:11:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5711837</guid><dc:creator>A JavaScript Stack Trace in ASP.NET AJAX « See Joel Program</dc:creator><author>A JavaScript Stack Trace in ASP.NET AJAX « See Joel Program</author><description>&lt;p&gt;Pingback from &amp;nbsp;A JavaScript Stack Trace in ASP.NET AJAX &amp;amp;laquo; See Joel Program&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5711837" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#5709518</link><pubDate>Mon, 04 Feb 2008 19:38:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5709518</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Joel: we still support Safari 2 and will do so at least until Safari 3 has been released in its final version and has reasonable adoption.&lt;/p&gt;
&lt;p&gt;I'll update the post though. Thanks for the heads up.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5709518" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#5704395</link><pubDate>Mon, 04 Feb 2008 04:34:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5704395</guid><dc:creator>Joel</dc:creator><author>Joel</author><description>&lt;p&gt;Hey Bertrand,&lt;/p&gt;
&lt;p&gt;This blog entry was from a long while ago and since then it looks like Safari (3 Beta Windows) supports the inline naming of functions. I&amp;#39;m running a couple of tests now and seeing it perform correctly (or at least not crap out). &lt;/p&gt;
&lt;p&gt;Of course there&amp;#39;s always backwards compatibility to worry about... &lt;/p&gt;
&lt;p&gt;Just an FYI.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5704395" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#2102603</link><pubDate>Mon, 26 Mar 2007 17:24:47 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2102603</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Kori: typically, you'd have the following release code for the above example:&lt;/p&gt;
&lt;p&gt;Foo.Bar=function(){Foo.Bar.initializeBase(this);}Foo.Bar.prototype={baz:function(){/*Do something*/}}Foo.Bar.registerClass('Foo.Bar');&lt;/p&gt;
&lt;p&gt;In other words, the $ names are compeltely absent from the release scripts. Does this help?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2102603" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#2085521</link><pubDate>Sat, 24 Mar 2007 00:07:12 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2085521</guid><dc:creator>Kori Francis</dc:creator><author>Kori Francis</author><description>&lt;p&gt;Can you do up a small sample of how this $ method should be used for debug scripts and not for production scripts?&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2085521" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#2042730</link><pubDate>Fri, 16 Mar 2007 20:33:59 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2042730</guid><dc:creator>Curious George</dc:creator><author>Curious George</author><description>&lt;p&gt;Thx!&lt;/p&gt;
&lt;p&gt;Is there a public function that is available for validating parameters? If not, was it left off b/c the method's signature might change in the future and you guys didn't want to risk a breaking change? It seems that it's a very valuable feature that JavaScript lacks (being argument agnostic) and would compliment the framework nicely.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2042730" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#2042503</link><pubDate>Fri, 16 Mar 2007 19:15:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2042503</guid><dc:creator>kevindente</dc:creator><author>kevindente</author><description>&lt;p&gt;Perhaps this bit of guidance could be added to the AJAX documentation at some point. &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2042503" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#2042244</link><pubDate>Fri, 16 Mar 2007 17:52:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2042244</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;George: yes, it is private/internal, but you wouldn't be the only one to use it. You have to know that being private, there is a small chance that it could change in the future. So, at your own risk...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2042244" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#2042090</link><pubDate>Fri, 16 Mar 2007 16:09:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2042090</guid><dc:creator>Curious George</dc:creator><author>Curious George</author><description>&lt;p&gt;Kinda off topic... &lt;/p&gt;
&lt;p&gt;Is it not the case that functions prefaces with &amp;quot;_&amp;quot; are by convention private methods? I could be completely off here, but if so, how can we use &amp;quot;Function._validateParams(...);&amp;quot; in our own client class libraries code to validate arguments as they come into our methods?&lt;/p&gt;
&lt;p&gt;Thx!!&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2042090" width="1" height="1"&gt;</description></item><item><title>re: What are these Foo$Bar$baz functions in the Microsoft Ajax Library files?</title><link>http://weblogs.asp.net/bleroy/archive/2007/03/15/what-are-these-foo-bar-baz-functions-in-the-microsoft-ajax-library-files.aspx#2036310</link><pubDate>Thu, 15 Mar 2007 22:15:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2036310</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Steven: Safari refuses to parse &amp;quot;baz: function Foo$Bar$baz()&amp;quot; if it's inside an object literal declaration like the prototype declaration. IIRC, it's considered a syntax error.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2036310" width="1" height="1"&gt;</description></item></channel></rss>