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();
}
}
});