This is an old revision of the document!
Toggle Code/Page
function removeTag(userID, photoID){
alert("Removed from pic #" + photoID);
}
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();
}
}
});