cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@codeconsult.ch>
Subject Switch behaviour changed in flowscript?
Date Fri, 11 Mar 2005 08:50:22 GMT
This has been discussed on users@ already [1], just wanted to note it 
here FYI.

Specifically, flowscript code such as

var shapeId = cocoon.request....
switch (shapeId){
         case "square":
	   // dosomething

did not dosomething anymore when shapeId=="square", although it worked 
in past releases (in the "shapes" sample of the tour block).

I've changed it to if/else to be on the safe side (also in the trunk), 
and in [1] Reinhard mentions that the new Rhino fixes this. Dunno since 
when this is broken, but it might mean a small incompatibility between 
2.1.x releases.

-Bertrand

[1] 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=110865972811342&w=2


Mime
View raw message