I am trying to create a plugin with callbacks, however I can't pass a parameter to the callback function.
I am calling the callback within the plugin as follows:
console.log(response.data);
base.options['onFinished'].call(response.data);
As expected response.data is propogated with the correct data, however on the other end where I defined the callback:
$ele.app({
onFinished: function(data) {
console.log(data);
}
);
It is being called, however data is "undefined".