ovidiu 02/04/10 00:53:29 Modified: src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript system.js Log: Revert back to using callCC instead of the new Continuation object. Revision Changes Path 1.9 +8 -4 xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/system.js Index: system.js =================================================================== RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript/system.js,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- system.js 10 Apr 2002 00:42:54 -0000 1.8 +++ system.js 10 Apr 2002 07:53:29 -0000 1.9 @@ -18,11 +18,15 @@ function sendPage(uri, bizData, timeToLive) { - var k = new Continuation(); - var kont = new WebContinuation(cocoon, k, lastContinuation, timeToLive); - cocoon.forwardTo(uri, bizData, kont); + var kont; + + callCC(function (k) { + kont = new WebContinuation(cocoon, k, lastContinuation, timeToLive); + cocoon.forwardTo(uri, bizData, kont); + suicide(); + }); + lastContinuation = kont; - suicide(); return kont; }
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]