cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Adding cocoon.suicide() to the FOM API.
Date Fri, 11 Mar 2005 15:04:17 GMT
Bertrand Delacretaz wrote:
> Le 11 mars 05, à 15:18, Sylvain Wallez a écrit :
> 
>> ...This is currently possible using "FOM_Cocoon.suicide()" which is 
>> what is used internally by cocoon.sendPageAndWait (see fom_system.js), 
>> and I would like to make this more visible by being available as 
>> "cocoon.suicide()".
> 
> 
> It is not cocoon that is killed, it is the current flowscript, so why not
> 
>  cocoon.killCurrentFlow()
> 
> instead, to avoid confusion?

Another suggestion:

   cocoon.terminate();

As in "terminate flow". Shorter, and supposedly clearer than suicide.

Vadim

Mime
View raw message