cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript system.js
Date Wed, 10 Apr 2002 07:53:29 GMT
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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message