arrow icon indicating copy to clipboard operation
arrow copied to clipboard

Added start/end events for Arrow

Open sudocode opened this issue 10 years ago • 2 comments

This will allow a developer to implement hooks for setting up and tearing down resources (such as VM allocation, etc).

var arrow = new Arrow;
arrow.on('start', function() { alert('started'); });
arrow.on('end', function() { alert('ended'); });
arrow.run();

sudocode avatar Feb 21 '14 00:02 sudocode

@sudocode , Thanks for the PR. How do you plan to implement hooks ? Do you have an example ?

pranavparikh avatar Apr 28 '14 16:04 pranavparikh

@sudocode As we discussed last, the idea is to allow using Arrow as a library. I'm will test it a bit before taking in the PR.

pranavparikh avatar Jun 05 '14 06:06 pranavparikh