You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2009/04/22 13:22:36 UTC
svn commit: r767470 -
/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js
Author: bommel
Date: Wed Apr 22 11:22:36 2009
New Revision: 767470
URL: http://svn.apache.org/viewvc?rev=767470&view=rev
Log:
(TOMAHAWK-1415) The leading spaces should be ignored if the html comment is removed before the JavaScript is evaluated in PPRPanelGroup
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js?rev=767470&r1=767469&r2=767470&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js Wed Apr 22 11:22:36 2009
@@ -331,7 +331,7 @@
var s = domElement.innerHTML;
while (match = regex.exec(s))
{
- var script = match[2];
+ var script = dojo.string.trimStart(match[2]);
if (script.length > 5 && script.substring(0, 4) == "<!--")
{
// strip html comment start to make ppr work with ie 5.5