demo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
demo [2010/03/16 22:20]
aspectscript
demo [2010/03/16 22:26] (current)
aspectscript
Line 30: Line 30:
          <p>Step 5:<br><a href="javascript:setCode('step5');">Everything together (2)</a></p>          <p>Step 5:<br><a href="javascript:setCode('step5');">Everything together (2)</a></p>
  
-          <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>+          <br>
           <input type="submit" value="  Run it!  ">           <input type="submit" value="  Run it!  ">
         </div>                 </div>        
Line 79: Line 79:
     </pre>     </pre>
     <pre id="step2">     <pre id="step2">
-AspectScript.deploy({+var batchAspect = AspectScript.deploy({
     kind: AspectScript.AROUND,     kind: AspectScript.AROUND,
     pointcut: function(jp){     pointcut: function(jp){
Line 99: Line 99:
  
 <pre id="step3"> <pre id="step3">
-AspectScript.deploy({+var removeAllAspect = AspectScript.deploy({
     kind: AspectScript.AFTER,     kind: AspectScript.AFTER,
     pointcut: AspectScript.Pointcuts.call(removeTag).and(function(jp){     pointcut: AspectScript.Pointcuts.call(removeTag).and(function(jp){
Line 128: Line 128:
  
   <pre id="step4">   <pre id="step4">
-AspectScript.deploy({+var batchAspect = AspectScript.deploy({
     kind: AspectScript.AROUND,     kind: AspectScript.AROUND,
     pointcut: function(jp){     pointcut: function(jp){
Line 146: Line 146:
 }); });
  
-AspectScript.deploy({+var removeAllAspect = AspectScript.deploy({
     kind: AspectScript.AFTER,     kind: AspectScript.AFTER,
     pointcut: AspectScript.Pointcuts.call(removeTag).and(function(jp){     pointcut: AspectScript.Pointcuts.call(removeTag).and(function(jp){
Line 175: Line 175:
  
   <pre id="step5">   <pre id="step5">
-AspectScript.deploy({+var batchAspect = AspectScript.deploy({
     kind: AspectScript.AROUND,     kind: AspectScript.AROUND,
     pointcut: function(jp){     pointcut: function(jp){
Line 193: Line 193:
 }); });
  
-AspectScript.deploy({+var removeAllAspect = AspectScript.deploy({
     kind: AspectScript.AFTER,     kind: AspectScript.AFTER,
     pointcut: AspectScript.Pointcuts.call(removeTag).and(function(jp){     pointcut: AspectScript.Pointcuts.call(removeTag).and(function(jp){
  • demo.1268778054.txt.gz
  • Last modified: 2010/03/16 22:20
  • by aspectscript