I have a object like this
Dropzone.options.dropzoneForm = {
addRemoveLinks: true,
init: function () {
//upload process
}
};
from another method, I can create a object of this class and pass parameter like
myDropzone = new dropzoneForm();
myDropzone.addRemoveLinks = false; //something like this works perfectly.
But I need to achieve another thing like
myDropzone.removedFile: function(){
//do something}
How can I achieve this, please suggest me.
new.dropzoneFormis a object literal and not a class. Either set it as a constructor or directly consume the objectmyDropzone.prototype.removedFile: function(){ //do something}