demo

This is an old revision of the document!


Toggle Code/Page
var actionListAspect = 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(){
        for(var i = 0; i < this.removals.length; ++i){
            this.removals[i].proceed();
        }
    }
});
    

  • demo.1268773775.txt.gz
  • Last modified: 2010/03/16 21:09
  • by aspectscript