Enterprise: Fileupload Advanced - Getting error when unbinding() and init() throws error

Created on 4 Dec 2018  路  9Comments  路  Source: infor-design/enterprise

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

[1] type

All 9 comments

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.

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:

screen shot 2018-12-04 at 4 12 41 pm

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

screen shot 2018-12-04 at 4 13 57 pm

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

Was this page helpful?
0 / 5 - 0 ratings