<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Unscriptable.com</title>
	<atom:link href="http://unscriptable.com/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://unscriptable.com</link>
	<description>Nothing is impossible.  Even on the Web.</description>
	<lastBuildDate>Sun, 31 Jan 2010 13:45:29 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on A Better Javascript Memoizer by uberVU - social comments</title>
		<link>http://unscriptable.com/index.php/2009/05/01/a-better-javascript-memoizer/comment-page-1/#comment-867</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Sun, 31 Jan 2010 13:45:29 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=272#comment-867</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by major_code: http://tinyurl.com/cwomvm 
A Better Javascript Memoizer &#124; Unscriptable.com...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by major_code: <a href="http://tinyurl.com/cwomvm" rel="nofollow">http://tinyurl.com/cwomvm</a><br />
A Better Javascript Memoizer | Unscriptable.com&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by John H</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-818</link>
		<dc:creator>John H</dc:creator>
		<pubDate>Fri, 18 Dec 2009 14:43:56 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-818</guid>
		<description>Is it &quot;just a little faster&quot; because the variable, &lt;code&gt;ary&lt;/code&gt;, is lower in the scope chain than &lt;code&gt;array&lt;/code&gt;? Or is there some special magic here?</description>
		<content:encoded><![CDATA[<p>Is it &#8220;just a little faster&#8221; because the variable, <code>ary</code>, is lower in the scope chain than <code>array</code>? Or is there some special magic here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by fearphage</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-813</link>
		<dc:creator>fearphage</dc:creator>
		<pubDate>Sat, 12 Dec 2009 11:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-813</guid>
		<description>It can actually be just a little faster than that using the third parameter:
&lt;pre lang=&quot;javascript&quot;&gt;array.filter(function(item, i, ary) {
  return ary.indexOf(item) == i;
});&lt;/pre&gt;

(Corrected the variable names)</description>
		<content:encoded><![CDATA[<p>It can actually be just a little faster than that using the third parameter:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">array.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #339933;">,</span> i<span style="color: #339933;">,</span> ary<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">return</span> ary.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> i<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>(Corrected the variable names)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by fearphage</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-812</link>
		<dc:creator>fearphage</dc:creator>
		<pubDate>Sat, 12 Dec 2009 11:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-812</guid>
		<description>It can actually be just a little faster than that using the third parameter::
&lt;pre lang=&quot;javascript&quot;&gt;array.filter(function(value, i, ary) {
  return ary.indexOf(item) == i;
});&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It can actually be just a little faster than that using the third parameter::</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">array.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>value<span style="color: #339933;">,</span> i<span style="color: #339933;">,</span> ary<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">return</span> ary.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> i<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by fearphage</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-809</link>
		<dc:creator>fearphage</dc:creator>
		<pubDate>Wed, 09 Dec 2009 17:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-809</guid>
		<description>Why not use the native filter for primitives?

&lt;pre lang=&quot;javascript&quot;&gt;array.filter(function(item, i) {
  return array.indexOf(item) == i;
});&lt;/pre&gt;

I understand this won&#039;t work for complex objects and if you want them sorted, you&#039;ll have to do that afterwards.</description>
		<content:encoded><![CDATA[<p>Why not use the native filter for primitives?</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">array.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">return</span> array.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">item</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> i<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I understand this won&#8217;t work for complex objects and if you want them sorted, you&#8217;ll have to do that afterwards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by Andrea Giammarchi</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-808</link>
		<dc:creator>Andrea Giammarchi</dc:creator>
		<pubDate>Tue, 08 Dec 2009 23:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-808</guid>
		<description>indexOf is unfortunately expensive only in IE where it&#039;s not native while splice could be expensive but above for loop is something extremely easy to maintain (5 line of code that should just work).
On the other hand I am using on up to two native methods against sort + forEach + map + push + all callbacks involved and executed for each index so I am kinda sure mine will perform 2 up to 5 times faster (in IE as example just sort is expensive).
Finally, if the goal is to make something portable for every case, objects included, with mine you are sure about unique primitives/instances so it depends what you need (if you need just to compare a single object property, mine won&#039;t make sense)
Regards</description>
		<content:encoded><![CDATA[<p>indexOf is unfortunately expensive only in IE where it&#8217;s not native while splice could be expensive but above for loop is something extremely easy to maintain (5 line of code that should just work).<br />
On the other hand I am using on up to two native methods against sort + forEach + map + push + all callbacks involved and executed for each index so I am kinda sure mine will perform 2 up to 5 times faster (in IE as example just sort is expensive).<br />
Finally, if the goal is to make something portable for every case, objects included, with mine you are sure about unique primitives/instances so it depends what you need (if you need just to compare a single object property, mine won&#8217;t make sense)<br />
Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by John H</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-807</link>
		<dc:creator>John H</dc:creator>
		<pubDate>Tue, 08 Dec 2009 22:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-807</guid>
		<description>Interesting! I wouldn&#039;t have thought to use indexOf() or splice() since I just assumed those were expensive operations.  I see you&#039;ve minimized the impact of scanning the array by using the second argument for indexOf().  Clever.  Some day I&#039;ll do some real benchmarking to see what works best.</description>
		<content:encoded><![CDATA[<p>Interesting! I wouldn&#8217;t have thought to use indexOf() or splice() since I just assumed those were expensive operations.  I see you&#8217;ve minimized the impact of scanning the array by using the second argument for indexOf().  Clever.  Some day I&#8217;ll do some real benchmarking to see what works best.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by Andrea Giammarchi</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-806</link>
		<dc:creator>Andrea Giammarchi</dc:creator>
		<pubDate>Tue, 08 Dec 2009 20:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-806</guid>
		<description>I know there is not compare function, but was not this good enough?
&lt;pre lang=&quot;javascript&quot;&gt;
for(var i = 1, length = array.length, n; i &lt; length; ++i){
    if(-1 &lt; (n = array.indexOf(array[i - 1], i))){
        a.splice(n, 1);
        --length;
        --i;
    }
};
&lt;/pre&gt;
an optimized fast performances version could avoid the inline splice and store those index to discard (splice could cost a lot) in order to push only certain indexes (not duplicated)</description>
		<content:encoded><![CDATA[<p>I know there is not compare function, but was not this good enough?</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> length <span style="color: #339933;">=</span> array.<span style="color: #660066;">length</span><span style="color: #339933;">,</span> n<span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> length<span style="color: #339933;">;</span> <span style="color: #339933;">++</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span> <span style="color: #339933;">&lt;</span> <span style="color: #009900;">&#40;</span>n <span style="color: #339933;">=</span> array.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span>array<span style="color: #009900;">&#91;</span>i <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        a.<span style="color: #660066;">splice</span><span style="color: #009900;">&#40;</span>n<span style="color: #339933;">,</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #339933;">--</span>length<span style="color: #339933;">;</span>
        <span style="color: #339933;">--</span>i<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

<p>an optimized fast performances version could avoid the inline splice and store those index to discard (splice could cost a lot) in order to push only certain indexes (not duplicated)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by Pankaj</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-805</link>
		<dc:creator>Pankaj</dc:creator>
		<pubDate>Tue, 08 Dec 2009 11:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-805</guid>
		<description>Another great post as usual. Had checked out prototype.js sometime back but never dojo. Now that you mention it, will surely try my hands on it.</description>
		<content:encoded><![CDATA[<p>Another great post as usual. Had checked out prototype.js sometime back but never dojo. Now that you mention it, will surely try my hands on it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deduplicate any array in Javascript by Tweets that mention Deduplicate any array in Javascript &#124; Unscriptable.com -- Topsy.com</title>
		<link>http://unscriptable.com/index.php/2009/12/08/deduplicate-any-array-in-javascript/comment-page-1/#comment-802</link>
		<dc:creator>Tweets that mention Deduplicate any array in Javascript &#124; Unscriptable.com -- Topsy.com</dc:creator>
		<pubDate>Tue, 08 Dec 2009 07:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=467#comment-802</guid>
		<description>[...] This post was mentioned on Twitter by John Hann, jonathan &#039;j5&#039; cook. jonathan &#039;j5&#039; cook said: RT @unscriptable: Deduplicate any array in Javascript: http://bit.ly/7taOgm (Doesn’t everybody have to do this once in a while?) [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by John Hann, jonathan &#39;j5&#39; cook. jonathan &#39;j5&#39; cook said: RT @unscriptable: Deduplicate any array in Javascript: <a href="http://bit.ly/7taOgm" rel="nofollow">http://bit.ly/7taOgm</a> (Doesn’t everybody have to do this once in a while?) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debouncing Javascript Methods by uberVU - social comments</title>
		<link>http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/comment-page-1/#comment-797</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Wed, 02 Dec 2009 11:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=7#comment-797</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by fstraps: http://3.ly/n61 Debouncing Javascript Methods &#124; great - $(window).resize(function(){console.log(&#039;resized&#039;);}.debounce()); #3lyfic...</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by fstraps: <a href="http://3.ly/n61" rel="nofollow">http://3.ly/n61</a> Debouncing Javascript Methods | great &#8211; $(window).resize(function(){console.log(&#8217;resized&#8217;);}.debounce()); #3lyfic&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debouncing Javascript Methods by Throttling Interaction with jQuery &#124; elc technologies - Blog : Ruby on Rails, iPhone, Flash, Agile, Interactive Design</title>
		<link>http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/comment-page-1/#comment-794</link>
		<dc:creator>Throttling Interaction with jQuery &#124; elc technologies - Blog : Ruby on Rails, iPhone, Flash, Agile, Interactive Design</dc:creator>
		<pubDate>Sun, 29 Nov 2009 14:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=7#comment-794</guid>
		<description>[...] In short, throttling will reduce the rate of a repeated event whereas debouncing will ensure that only one signal for a given event is fired within a fixed amount of time. (A much better and detailed explanation can be found here) [...]</description>
		<content:encoded><![CDATA[<p>[...] In short, throttling will reduce the rate of a repeated event whereas debouncing will ensure that only one signal for a given event is fired within a fixed amount of time. (A much better and detailed explanation can be found here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debouncing Javascript Methods by Pete</title>
		<link>http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/comment-page-1/#comment-731</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Fri, 09 Oct 2009 20:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=7#comment-731</guid>
		<description>Very helpful, thanks!</description>
		<content:encoded><![CDATA[<p>Very helpful, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debouncing Javascript Methods by Twitter Trackbacks for Debouncing Javascript Methods &#124; Unscriptable.com [unscriptable.com] on Topsy.com</title>
		<link>http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/comment-page-1/#comment-709</link>
		<dc:creator>Twitter Trackbacks for Debouncing Javascript Methods &#124; Unscriptable.com [unscriptable.com] on Topsy.com</dc:creator>
		<pubDate>Mon, 31 Aug 2009 10:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=7#comment-709</guid>
		<description>[...] Debouncing Javascript Methods &#124; Unscriptable.com  unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods &#8211; view page &#8211; cached  Debouncing Javascript Methods, ... a user could simply lean on the Tab key to navigate from one end of the form to the other. If the user were lucky enough to be on a fast network connection and had a fast enough browser, this would go fairly smoothly. However, the server would get absolutely hammered by all of the XHR requests necessary to populate the side-bar! &#8212; From the page [...]</description>
		<content:encoded><![CDATA[<p>[...] Debouncing Javascript Methods | Unscriptable.com  unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods &ndash; view page &ndash; cached  Debouncing Javascript Methods, &#8230; a user could simply lean on the Tab key to navigate from one end of the form to the other. If the user were lucky enough to be on a fast network connection and had a fast enough browser, this would go fairly smoothly. However, the server would get absolutely hammered by all of the XHR requests necessary to populate the side-bar! &mdash; From the page [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debouncing Javascript Methods by armdros</title>
		<link>http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/comment-page-1/#comment-706</link>
		<dc:creator>armdros</dc:creator>
		<pubDate>Fri, 28 Aug 2009 08:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=7#comment-706</guid>
		<description>Hey John, I appreciate you for your help!!
I Think You are very clever. Thankyou</description>
		<content:encoded><![CDATA[<p>Hey John, I appreciate you for your help!!<br />
I Think You are very clever. Thankyou</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debouncing Javascript Methods by John H</title>
		<link>http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/comment-page-1/#comment-702</link>
		<dc:creator>John H</dc:creator>
		<pubDate>Fri, 21 Aug 2009 17:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=7#comment-702</guid>
		<description>Hey armdros, I think you&#039;ve discovered something ... um ... interesting.  

It appears that IE clobbers* the event object once the original function call goes out of scope.  It should not do this since we are holding a reference to the event object!  This is obviously a bug in IE.  

There is a work-around: just debounce the portion of the handler that needs to be debounced and process the event in a non-debounced function.  

Example:

&lt;pre lang=&quot;javascript&quot;&gt;
// the debounced part - notice we don&#039;t pass the event object
var ttt = function (code) {
    alert(code);
}.debounce(200);

// the attached event handler extracts the keycode ad passes it to the debounced function
this.inputbox.attachEvent(&#039;onkeypress&#039;, function (e) { ttt((e &#124;&#124; window.event).keyCode) });

&lt;/pre&gt;

I hope that helps!

-- John

* It&#039;s not really clobbered, but I am not sure how else to explain it.  The object exists, but it no longer has any members and raises exceptions if accessed: &quot;Member not found.&quot;</description>
		<content:encoded><![CDATA[<p>Hey armdros, I think you&#8217;ve discovered something &#8230; um &#8230; interesting.  </p>
<p>It appears that IE clobbers* the event object once the original function call goes out of scope.  It should not do this since we are holding a reference to the event object!  This is obviously a bug in IE.  </p>
<p>There is a work-around: just debounce the portion of the handler that needs to be debounced and process the event in a non-debounced function.  </p>
<p>Example:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// the debounced part - notice we don't pass the event object</span>
<span style="color: #003366; font-weight: bold;">var</span> ttt <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>code<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>code<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>.<span style="color: #660066;">debounce</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// the attached event handler extracts the keycode ad passes it to the debounced function</span>
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">inputbox</span>.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'onkeypress'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> ttt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>e <span style="color: #339933;">||</span> window.<span style="color: #660066;">event</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keyCode</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I hope that helps!</p>
<p>&#8211; John</p>
<p>* It&#8217;s not really clobbered, but I am not sure how else to explain it.  The object exists, but it no longer has any members and raises exceptions if accessed: &#8220;Member not found.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debouncing Javascript Methods by armdros</title>
		<link>http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/comment-page-1/#comment-701</link>
		<dc:creator>armdros</dc:creator>
		<pubDate>Fri, 21 Aug 2009 06:23:07 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=7#comment-701</guid>
		<description>Hi, I wanna use this script in IE, but I can`t get the event keyCode after debounce. how can i get it?

test code here: 

&lt;pre lang=&quot;javascript&quot;&gt;
var ttt = function(e){
	if(!e &amp;&amp; parent.window.event) { e = parent.window.event;}
        alert(e.keyCode); // error !!

}.debounce(200,false);
this.inputbox.attachEvent(&quot;onkeyup&quot;, ttt, false);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi, I wanna use this script in IE, but I can`t get the event keyCode after debounce. how can i get it?</p>
<p>test code here:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> ttt <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>e <span style="color: #339933;">&amp;&amp;</span> parent.<span style="color: #660066;">window</span>.<span style="color: #660066;">event</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> e <span style="color: #339933;">=</span> parent.<span style="color: #660066;">window</span>.<span style="color: #660066;">event</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
        <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>e.<span style="color: #660066;">keyCode</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// error !!</span>
&nbsp;
<span style="color: #009900;">&#125;</span>.<span style="color: #660066;">debounce</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">200</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">inputbox</span>.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;onkeyup&quot;</span><span style="color: #339933;">,</span> ttt<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debouncing Javascript Methods by Paul Irish &#187; Debounced resize() jQuery event handler</title>
		<link>http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/comment-page-1/#comment-681</link>
		<dc:creator>Paul Irish &#187; Debounced resize() jQuery event handler</dc:creator>
		<pubDate>Wed, 12 Aug 2009 01:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=7#comment-681</guid>
		<description>[...] I first saw John Hann&#039;s debounce post, this use case is what I immediately thought [...]</description>
		<content:encoded><![CDATA[<p>[...] I first saw John Hann&#39;s debounce post, this use case is what I immediately thought [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10 &#8220;Must-have&#8221; skills for Front-End Developers by Sinisa</title>
		<link>http://unscriptable.com/index.php/2009/05/19/10-must-have-skills-for-front-end-developers/comment-page-1/#comment-612</link>
		<dc:creator>Sinisa</dc:creator>
		<pubDate>Wed, 17 Jun 2009 21:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=371#comment-612</guid>
		<description>I am working as a frontend developer for 5 years now. I don&#039;t have a half skills that you mentioned in your post so I guess in your eyes I am rank amateur. In my company (and many others too) frontend developers don&#039;t need to know so much backend stuff (if any). My daily workflow is to convert PSD/PNG to cross-browser standard compliant XHTML/CSS/Javascript web sites. When I&#039;am done backend developer starts to work. Somethimes backend developers need design updates - then I am doing that job (so I need to know Fireworks, Photoshop, Ilustrator and good web desing principles). I also need to know WCAG and how to test web sites to be WCAG compliant - that is also a must for frontend developer. I see my job as a link between IA world - design world - backend world so i need to know something from all of this worlds.</description>
		<content:encoded><![CDATA[<p>I am working as a frontend developer for 5 years now. I don&#8217;t have a half skills that you mentioned in your post so I guess in your eyes I am rank amateur. In my company (and many others too) frontend developers don&#8217;t need to know so much backend stuff (if any). My daily workflow is to convert PSD/PNG to cross-browser standard compliant XHTML/CSS/Javascript web sites. When I&#8217;am done backend developer starts to work. Somethimes backend developers need design updates &#8211; then I am doing that job (so I need to know Fireworks, Photoshop, Ilustrator and good web desing principles). I also need to know WCAG and how to test web sites to be WCAG compliant &#8211; that is also a must for frontend developer. I see my job as a link between IA world &#8211; design world &#8211; backend world so i need to know something from all of this worlds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hi-performance Javascript Tips #2 «Revisited» by Javascript Calendar Guy</title>
		<link>http://unscriptable.com/index.php/2009/03/19/hi-performance-javascript-tip-2-revisited/comment-page-1/#comment-594</link>
		<dc:creator>Javascript Calendar Guy</dc:creator>
		<pubDate>Tue, 09 Jun 2009 09:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://unscriptable.com/?p=157#comment-594</guid>
		<description>Hey, very neat tricks. Thanks for sharing, I&#039;ll be sure to subscribe to your blog.</description>
		<content:encoded><![CDATA[<p>Hey, very neat tricks. Thanks for sharing, I&#8217;ll be sure to subscribe to your blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
