You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/02/23 19:01:45 UTC

svn commit: r380175 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/statechangednotifier/StateChangedNotifierRenderer.java

Author: werpu
Date: Thu Feb 23 10:01:38 2006
New Revision: 380175

URL: http://svn.apache.org/viewcvs?rev=380175&view=rev
Log:
fixed an inline script bug

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/statechangednotifier/StateChangedNotifierRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/statechangednotifier/StateChangedNotifierRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/statechangednotifier/StateChangedNotifierRenderer.java?rev=380175&r1=380174&r2=380175&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/statechangednotifier/StateChangedNotifierRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/statechangednotifier/StateChangedNotifierRenderer.java Thu Feb 23 10:01:38 2006
@@ -73,7 +73,6 @@
         String notifierVar = replacedClientId + "Notifier";
 
         StringBuffer sb = new StringBuffer();
-        sb.append("<!--\n");
         sb.append("var " + notifierVar + " = null;\n");
 
         sb.append("function " + initFunctionName + "() {\n");
@@ -94,8 +93,7 @@
 
         sb.append("}\n");
         sb.append("dojo.addOnLoad(window, '" + initFunctionName + "');\n");
-        sb.append("-->\n");
-
+      
         AddResource addResource = AddResourceFactory.getInstance(facesContext);
         addResource.addInlineScriptAtPosition(facesContext, AddResource.HEADER_BEGIN, sb.toString());
     }