nathanvda/cocoon — Issue #37: Add extra parameter for trigger insert or removal-callback
Author: ldonnet
Created: 2012-02-13 09:16:05+00:00
State: open

Hi,

I want to use your plugin in my application but I've got one problem. I need to use the node in trigger for other action (update some other data in relation with node).
I see in jquery api that trigger can take an extra parameter : trigger( eventType [, extraParameters] ). Perhaps it's possible to pass node argument in extra parameters. The code could be :

function trigger_removal_callback(node) {
node.parent().parent().trigger('removal-callback', node);
}