cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject [VOTE] Remove FlowScript Function Parameters Support
Date Tue, 09 Nov 2004 13:38:48 GMT
Hi Guys,

As discussed before, and several times already, it is time to phase out 
"feature" of passing parameters from the sitemap into flowscript as positioned 
function parameters:

   function myflow (a, b, c) {
       ...
   }

Because this syntax relies on order of <map:parameter/> elements in the sitemap 
but not names of the parameters. This syntax is replaced with non-ambigous:

   function myflow () {
       var a = cocoon.parameters.a;
       ...
   }

Proposed phase out plan is:

   1. Write ERROR into the log file in 2.1.6 when usage of deprecated
      syntax is detected.
   2. Throw exception in 2.1.7 when usage of deprecated syntax
      is detected.
   3. Completely remove support of deprecated syntax in 2.2.


Please cast your votes.


Vadim

Mime
View raw message