Lets say I have some javascript as follows:
$('#bar').fileupload({
baz: 2,
baf: 6
add: function(e, data){
stop(e,data);
},
stop: function(e,data){
console.log('I am Called');
}
});
From the add function i want to call the stop function in some situations. The problem is that now the stop function does not get called. How can I get this done?
Thanks
stop()to a call tostop(e, data)?this.stop(), but are you sure that is how the plugin is supposed to be used? When you define an anonymous function like this it is usually so as to configure the plugin, and not so that you can call it manually. Does the plugin have a website we can take a look at?