From 43ed19264591e2158be5974b96b07c65b6d9ccdc Mon Sep 17 00:00:00 2001 From: "Donald J. Brown" Date: Tue, 30 Jan 2007 22:46:48 +0000 Subject: [PATCH] Fixed embarrasing lack of faith in the "if" statement git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@501618 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/struts2/static/dojo/struts/widget/Bind.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js b/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js index 351aa928a..b9456e646 100644 --- a/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js +++ b/core/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js @@ -44,13 +44,9 @@ dojo.widget.defineWidget( 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"); + }); } }