Describe the bug
OP is seeing an error when chaining like
fileuploadadvanced.unbind().init()
To Reproduce
When we use code like this:
$('#divFileUpload').fileuploadadvanced( { send: sendFileToServer });
We got errors from sohoxi.js at function call 聽"fileuploadadvanced.updated()", in which there is this line of code:
**return this.unbind().init();**
Expected behavior
The fileuploadadvanced.unbind() function should have "return this" so it can be chained without an error.
Version
v4.12.1
Screenshots
n/a
Platform
all
Additional context
n/a
Thanks, if you have the time, feel free to push a PR. Otherwise adding to next available sprint.
@asui4tong Thanks for your submission 馃憤
I updated your issue description to follow our template. It would be helpful if you follow all of the steps in the bug template or our feature request template for future submissions.
Seems like to solve we just need a return this.
Here: https://github.com/infor-design/enterprise/blob/master/src/components/fileupload-advanced/fileupload-advanced.js#L572
And Here: https://github.com/infor-design/enterprise/blob/master/src/components/fileupload-advanced/fileupload-advanced.js#L72
Thank you! I will bookmark this one to serve as a template for future submissions.
When you click to create a new issue, it should ask you which template you want to use:

Then you can follow the text we already have pre-filled in the description:

Hi Thea, what is the reason you assign this to me? It is a bug to be addressed. If you assign to me I am afraid no one will pick it up.
I thought you were going to do a PR for this as you attempted it. If not no problem someone can pick it up.
@tmcconechy FYI - I'm going to backlog this issue for future planning due to lack of activity.
Added this fix in finally. Just did it here https://github.com/infor-design/enterprise/pull/3561/files#diff-015738a5cd4ba96bc08c363e6d59161fR73