From 1470efd59224ea18ff2cc33e9d2e30c24273b091 Mon Sep 17 00:00:00 2001 From: Rainer Hermanns Date: Fri, 13 Jun 2008 16:19:32 +0000 Subject: [PATCH] WW-2541 Backport WW-1951 to struts stable o patch by Jelmer Kuperus applied git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_0_X@667583 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/struts2/static/dojo/struts/widget/Bind.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 991d91049..6f2b65811 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 @@ -140,6 +140,8 @@ dojo.widget.defineWidget( if(this.executeScripts) { //update targets content var parsed = this.parse(data); + this.setContent(parsed.text); + //eval scripts if(parsed.scripts && parsed.scripts.length > 0) { var scripts = ""; @@ -148,7 +150,6 @@ dojo.widget.defineWidget( } (new Function('_container_', scripts+'; return this;'))(this); } - this.setContent(parsed.text); } else { this.setContent(data);