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:07]
aspectscript
demo [2010/03/16 22:26] (current)
aspectscript
Line 14: Line 14:
         <textarea id="code" name="code" style="width:720px; height:441px">//enter your code here</textarea>         <textarea id="code" name="code" style="width:720px; height:441px">//enter your code here</textarea>
         </div>         </div>
-        <div style="float: rigth; text-align: left; padding-left: 10px;">+        <div style="float: rigth; text-align: left; margin-left: 10px;">
           <p>Step 0:<br><a href="javascript:setCode('step0');">removeTag code</a></p>           <p>Step 0:<br><a href="javascript:setCode('step0');">removeTag code</a></p>
 +<hr>
           <p>Step 1:<br><a href="javascript:setCode('step1');">Aspect Structure</a></p>           <p>Step 1:<br><a href="javascript:setCode('step1');">Aspect Structure</a></p>
 <hr> <hr>
Line 27: Line 28:
 <hr> <hr>
  
-         <p>Step 5:<br><a href="javascript:setCode('step4');">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 78: 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 98: 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 127: 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 145: 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 174: Line 175:
  
   <pre id="step5">   <pre id="step5">
-function removeTag(userID, photoID){ +var batchAspect = AspectScript.deploy({
-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.1268777244.txt.gz
  • Last modified: 2010/03/16 22:07
  • by aspectscript