Get legacy JS parser to understand functions that don't start with "app." and don't have brackets in the attribute.

This covers widget or other non-app static functions (eg: et2_avatar.uploadAvatar_onFinish)
This commit is contained in:
nathangray
2020-04-23 11:33:24 -06:00
parent b7ec2a9b91
commit eaafd5eb1f
3 changed files with 23 additions and 8 deletions

View File

@ -665,14 +665,10 @@ export class et2_file extends et2_inputWidget
event.data = this;
// Callback
if(typeof this.onFinishOne == 'function' && !this.options.onFinishOne)
if(typeof this.onFinishOne == 'function')
{
this.onFinishOne(event, response, name);
}
else if (this.options.onFinishOne)
{
et2_call(this.options.onFinishOne,event,response,name);
}
return true;
}