PPW.addAction( function (){ alert(0); } );
But you can have a does, and undo functions for your action:
Mas você pode usar does, e undo para suas actions:
PPW.addAction({
does: function(){ alert("doing something"); },
undo: function(){ alert("undo that!"); },
});
You can also add a timing property(in milliseconds).
It will make your action run on schedule, instead of on click/next event.
Você também pode usar a propriedade timing para executar automaticamente
PPW.addAction({
// will execute the 'does' function automatically, after 1 second
timing: 1000, // you can use the word 'auto', as equivalent to 0
does: function(){ alert("doing something"); },
undo: function(){ alert("undo that!"); },
});