Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
scratchpad [2009/10/19 20:13] aspectscript |
scratchpad [2010/05/11 23:08] (current) aspectscript |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Scratchpad ====== | ====== Scratchpad ====== | ||
| - | In this page you can interactively try AspectScript. | + | In this page you can interactively try AspectScript. |
| ======= Type your code in this text area... ======= | ======= Type your code in this text area... ======= | ||
| Line 13: | Line 13: | ||
| var adv = function(jp){ | var adv = function(jp){ | ||
| var jps = document.getElementById(" | var jps = document.getElementById(" | ||
| - | | + | |
| }; | }; | ||
| AspectScript.before(pc, | AspectScript.before(pc, | ||
| - | //all the following | + | //all the jps generated from here are seen by the aspect |
| - | function foo(){ | + | pc(); |
| - | } | + | |
| - | foo(); | + | |
| var x = 0; | var x = 0; | ||
| - | var obj = {f: 1} | + | var obj = {f: 1}; |
| + | var fun = function(){}; | ||
| </ | </ | ||
| < | < | ||
| - | <body> | + | <b>Sequences matched:</b> |
| - | This is the list of join points seen by the aspect: | + | |
| <div id=" | <div id=" | ||
| - | </ | ||
| </ | </ | ||
| <br> | <br> | ||
| <div style=" | <div style=" | ||
| - | <input type=" | + | < |
| </ | </ | ||
| </ | </ | ||