demo

This is an old revision of the document!


Toggle Code/Page
function removeTag(userID, photoID){
    alert("Removed from pic #" + photoID);
}
    
AspectScript.deploy({
    kind: 
    pointcut: 
    advice: 
});
    
AspectScript.deploy({
    kind: AspectScript.AROUND,
    pointcut: function(jp){
        return jp.isCall() && jp.fun === removeTag;
    },
    advice: function(jp){
        this.removals.push(jp.clone());
        updateActionsUI();
    },
    //other properties
    removals: [],
    applyChanges: function(){
        while(this.removals.length != 0){
            this.removals.shift().proceed();
        }
    }
});
    

  • demo.1268776919.txt.gz
  • Last modified: 2010/03/16 22:01
  • by aspectscript