Author: mrdon Date: Tue Jan 30 14:46:48 2007 New Revision: 501618 URL: http://svn.apache.org/viewvc?view=rev&rev=501618 Log: Fixed embarrasing lack of faith in the "if" statement
Modified: struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js Modified: struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js?view=diff&rev=501618&r1=501617&r2=501618 ============================================================================== --- struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js (original) +++ struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js Tue Jan 30 14:46:48 2007 @@ -44,13 +44,9 @@ this.log("Listening to " + this.listenTopics + " to refresh"); var topics = this.listenTopics.split(","); if(topics) { - if(topics) { - if(topics) { - dojo.lang.forEach(topics, function(topic){ - dojo.event.topic.subscribe(topic, self, "reloadContents"); - }); - } - } + dojo.lang.forEach(topics, function(topic){ + dojo.event.topic.subscribe(topic, self, "reloadContents"); + }); } }