Closed JasperTey closed 6 years ago
Adding the following line after Line 703 appears to have resolved it:
ss.extendObj( this, ss.SimpleUpload.prototype ); // <--- ADDED LINE
ss.extendObj( this._opts, ss._options ); // Include any setup options
ss.extendObj( this._opts, options ); // Then add options for this instance
This is a rather ad-hoc fix, of course. Could anyone advise if this is a proper solution? It seems like nobody else is experiencing this issue to begin with.
I realized what my mistake was. I wasn't instantiating using the new
keyword.
// Works
var uploader = new ss.SimpleUpload(options);
// Does not work
var uploader = ss.SimpleUpload(options);
Case closed!
Right off the bat, I'm getting the following error when attempting to use the plugin:
Uncaught TypeError: this.addButton is not a function
Triggered on line 718:
My instantiation code (edited slightly for brevity):
What am I missing here? I'm using RequireJS, if that makes any difference.