<?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 on: Knockout Style Data-Bind Attributes For Backbone</title>
	<atom:link href="http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/</link>
	<description>Better Than Yesterday</description>
	<lastBuildDate>Fri, 24 May 2013 06:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Viceroy</title>
		<link>http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/#comment-1706</link>
		<dc:creator>Viceroy</dc:creator>
		<pubDate>Fri, 05 Aug 2011 01:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=500#comment-1706</guid>
		<description>I searched for something completely different, but found your website! And have to say thanks. Nice read. Will come back.</description>
		<content:encoded><![CDATA[<p>I searched for something completely different, but found your website! And have to say thanks. Nice read. Will come back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vik Bhatti</title>
		<link>http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/#comment-1689</link>
		<dc:creator>Vik Bhatti</dc:creator>
		<pubDate>Mon, 01 Aug 2011 14:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=500#comment-1689</guid>
		<description>Epic work!  </description>
		<content:encoded><![CDATA[<p>Epic work!  </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: farkashon</title>
		<link>http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/#comment-1687</link>
		<dc:creator>farkashon</dc:creator>
		<pubDate>Sat, 30 Jul 2011 05:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=500#comment-1687</guid>
		<description>Very nice indeed!</description>
		<content:encoded><![CDATA[<p>Very nice indeed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/#comment-1686</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Fri, 29 Jul 2011 20:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=500#comment-1686</guid>
		<description>well... i stand corrected! :) 

i&#039;ll have to try it out and see what happens</description>
		<content:encoded><![CDATA[<p>well&#8230; i stand corrected! :) </p>
<p>i&#8217;ll have to try it out and see what happens</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/#comment-1685</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 29 Jul 2011 20:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=500#comment-1685</guid>
		<description>Hmm, a quick test on the firebug console showed that it works, but not sure about the context..?</description>
		<content:encoded><![CDATA[<p>Hmm, a quick test on the firebug console showed that it works, but not sure about the context..?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derick Bailey</title>
		<link>http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/#comment-1684</link>
		<dc:creator>Derick Bailey</dc:creator>
		<pubDate>Fri, 29 Jul 2011 20:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=500#comment-1684</guid>
		<description>without having run that code, i don&#039;t think it would work. &#039;element&#039; is a jQuery selector object, so i don&#039;t think that code would work. the call to &#039;element[elementAttr]&#039; would try to look for an element within the selector, at index elementAttr, which wouldn&#039;t be valid.</description>
		<content:encoded><![CDATA[<p>without having run that code, i don&#8217;t think it would work. &#8216;element&#8217; is a jQuery selector object, so i don&#8217;t think that code would work. the call to &#8216;element[elementAttr]&#8216; would try to look for an element within the selector, at index elementAttr, which wouldn&#8217;t be valid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://lostechies.com/derickbailey/2011/07/29/knockout-style-data-bind-attributes-for-backbone/#comment-1683</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 29 Jul 2011 19:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://lostechies.com/derickbailey/?p=500#comment-1683</guid>
		<description>Great Stuff Dude!
btw, any reason why you shouldn&#039;t replace that code-

model.bind(&quot;change:&quot; + modelAttr, function(changedModel, val){
          switch(elementAttr){
            case &quot;html&quot;:
              element.html(val);
              break;
            case &quot;text&quot;:
              element.text(val);
              break;
            default:
              element.attr(elementAttr, val);
          }
        });
		
with the following: (?)

model.bind(&quot;change:&quot; + modelAttr, function(changedModel, val){
	if (element[elementAttr]) {
		element[elementAttr](val);
	}
	else {
		element[&#039;attr&#039;](elementAttr, val);
	}
});

Just curious...</description>
		<content:encoded><![CDATA[<p>Great Stuff Dude!<br />
btw, any reason why you shouldn&#8217;t replace that code-</p>
<p>model.bind(&#8220;change:&#8221; + modelAttr, function(changedModel, val){<br />
          switch(elementAttr){<br />
            case &#8220;html&#8221;:<br />
              element.html(val);<br />
              break;<br />
            case &#8220;text&#8221;:<br />
              element.text(val);<br />
              break;<br />
            default:<br />
              element.attr(elementAttr, val);<br />
          }<br />
        });</p>
<p>with the following: (?)</p>
<p>model.bind(&#8220;change:&#8221; + modelAttr, function(changedModel, val){<br />
	if (element[elementAttr]) {<br />
		element[elementAttr](val);<br />
	}<br />
	else {<br />
		element['attr'](elementAttr, val);<br />
	}<br />
});</p>
<p>Just curious&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
