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 Mon, 15 Apr 2002 05:12:06 GMT
ovidiu      02/04/14 22:12:06

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/javascript
                        system.js
  Log:
  Instantiate a Continuation object instead of using callCC, which was removed from this Rhino
version.
  
  Revision  Changes    Path
  1.10      +10 -9     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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- system.js	10 Apr 2002 07:53:29 -0000	1.9
  +++ system.js	15 Apr 2002 05:12:06 -0000	1.10
  @@ -18,19 +18,20 @@
   
   function sendPage(uri, bizData, timeToLive)
   {
  -  var kont;
  -
  -  callCC(function (k) {
  -    kont = new WebContinuation(cocoon, k, lastContinuation, timeToLive);
  -    cocoon.forwardTo(uri, bizData, kont);
  -    suicide();
  -  });
  -
  +  var kont = _sendPage(uri, bizData, timeToLive);
     lastContinuation = kont;
     return kont;
   }
   
  +function _sendPage(uri, bizData, timeToLive)
  +{
  +  var k = new Continuation();
  +  var kont = new WebContinuation(cocoon, k, lastContinuation, timeToLive);
  +  cocoon.forwardTo(uri, bizData, kont);
  +  suicide();
  +}
  +
   function handleContinuation(kont)
   {
  -  kont.continuation();
  +  kont.continuation(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