Snap.js icon indicating copy to clipboard operation
Snap.js copied to clipboard

Improve event dispatcher + add event trigger

Open laurentgoudet opened this issue 10 years ago • 0 comments

I've improved the event dispatcher to allow the "on" method to register multiple events a la jQuery (e.g, snap.on('open close', function(event, trigger) {}) will listen to both the "open" and "close" events + added the trigger ('button', 'tag', or 'drag') to the event callback. All the modification all backward compatible.

laurentgoudet avatar Jun 04 '14 02:06 laurentgoudet