reinhard 2003/09/12 07:48:49
Modified: src/blocks/scratchpad/samples/intercepted-flow basescript.js
Log:
- extend example showing reflecting the latest changes (return statements
follow after() interceptions)
Revision Changes Path
1.3 +7 -2
cocoon-2.1/src/blocks/scratchpad/samples/intercepted-flow/basescript.js
Index: basescript.js
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/scratchpad/samples/intercepted-flow/basescript.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- basescript.js 8 Sep 2003 22:58:29 -0000 1.2
+++ basescript.js 12 Sep 2003 14:48:49 -0000 1.3
@@ -5,12 +5,17 @@
function interceptionTest() {
var uri = "page/info";
cocoon.log.error ( "interceptionTest - baseScript" );
- callAnotherFunction();
+ var x = callAnotherFunction();
cocoon.sendPageAndWait(uri, { });
}
function callAnotherFunction() {
- cocoon.log.error ( "callAnotherFunction() - baseScript" );
+ var x = 1;
+ cocoon.log.error ( "callAnotherFunction() - baseScript" );
+ if( x == 2 ) {
+ return 72;
+ }
+ return 27;
}
function testSendPageAndWait() {