<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://js.teknober.com/extern.php?action=feed&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[JavaScript]]></title>
		<link>http://js.teknober.com/index.php</link>
		<description><![CDATA[The most recent topics at JavaScript.]]></description>
		<lastBuildDate>Wed, 22 Feb 2012 15:15:06 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[[Prototype] addStatic]]></title>
			<link>http://js.teknober.com/viewtopic.php?id=5&amp;action=new</link>
			<description><![CDATA[<p>&lt;code javascript&gt;<br />/**<br /> * Adds new static object to global<br /> * @param string className<br /> * */<br />Function.addFunc(&#039;addStatic, function(className) {<br />&#160; &#160; return this.addClass(className, 1);<br />});<br />&lt;/code&gt;</p>]]></description>
			<author><![CDATA[dummy@example.com (master)]]></author>
			<pubDate>Wed, 22 Feb 2012 15:15:06 +0000</pubDate>
			<guid>http://js.teknober.com/viewtopic.php?id=5&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[[Prototype] addFunc]]></title>
			<link>http://js.teknober.com/viewtopic.php?id=4&amp;action=new</link>
			<description><![CDATA[<p>/**<br /> * Adds new prototype to functions.<br /> * Scope is limited functions<br /> * @param string methodName<br /> * @param function func<br /> * @return function */<br />Function.prototype.addFunc = function(methodName, func) {<br />&#160; &#160; var method = this.prototype;</p><p>&#160; &#160; if (!method[methodName] &amp;&amp; typeof func === &#039;function&#039;) {<br />&#160; &#160; &#160; &#160; method[methodName] = func;<br />&#160; &#160; }</p><p>&#160; &#160; return this;<br />};</p>]]></description>
			<author><![CDATA[dummy@example.com (master)]]></author>
			<pubDate>Wed, 22 Feb 2012 15:13:36 +0000</pubDate>
			<guid>http://js.teknober.com/viewtopic.php?id=4&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[[Prototype] addClass]]></title>
			<link>http://js.teknober.com/viewtopic.php?id=3&amp;action=new</link>
			<description><![CDATA[<p>/**<br /> * Adds new function to global space<br /> * when isObject is set to true, it will define the object as static class<br /> * @param string className<br /> * @param boolean isObject<br /> * @return mixed<br /> * */<br />Function.addFunc(&#039;addClass&#039;, function(className, isObject) {<br />&#160; &#160; var module = global,<br />&#160; &#160; &#160; &#160; spaceArray = className ? className.split(&#039;.&#039;) : [],<br />&#160; &#160; &#160; &#160; subSpace = null,<br />&#160; &#160; &#160; &#160; ndx = null;</p><p>&#160; &#160; for (ndx = 0; ndx &lt; spaceArray.length - 1 &amp;&amp; (subSpace = spaceArray[ndx]); ++ndx) {<br />&#160; &#160; &#160; &#160; if (subSpace) {<br />&#160; &#160; &#160; &#160; &#160; &#160; if (!module[subSpace]) {<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; module[subSpace] = {};<br />&#160; &#160; &#160; &#160; &#160; &#160; }</p><p>&#160; &#160; &#160; &#160; &#160; &#160; module = module[subSpace];<br />&#160; &#160; &#160; &#160; }<br />&#160; &#160; }</p><p>&#160; &#160; subSpace = spaceArray[ndx];<br />&#160; &#160; module[subSpace] = isObject ? new this : this;</p><p>&#160; &#160; return this;<br />});</p>]]></description>
			<author><![CDATA[dummy@example.com (master)]]></author>
			<pubDate>Wed, 22 Feb 2012 15:12:59 +0000</pubDate>
			<guid>http://js.teknober.com/viewtopic.php?id=3&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Introduction]]></title>
			<link>http://js.teknober.com/viewtopic.php?id=2&amp;action=new</link>
			<description><![CDATA[<p>Introduction</p>]]></description>
			<author><![CDATA[dummy@example.com (master)]]></author>
			<pubDate>Fri, 06 Jan 2012 00:24:48 +0000</pubDate>
			<guid>http://js.teknober.com/viewtopic.php?id=2&amp;action=new</guid>
		</item>
	</channel>
</rss>

