loadAssets function using multiple calls to
addJs() - a mixture of jQuery plugins, 3rd party libraries and then finally, the FormWidget specific JS itself.
This FormWidget is defined in the same way as the standard OC1 FormWidgets are.
We’re still in the testing phase of October 3.x but one of the test sites, on a Plugin that is using this FormWidget, is consistently showing multiple console errors “Uncaught Error: Can only have one anonymous define call per script file
This in turn is causing our FormWidget to fail as it can’t find the JS classes it needs.
I’m guessing there have been internal changes between OC 1 and 3 that may be affecting things but I’m not sure how to fix it. I’ve tried switching to a single addJs call and passing an array but this seems to only reduce the number of “Can only have one anonymous define call” errors
Any help would be greatly appreciated! Thanks