If I'm wanting to modify/build on an existing WAB widget but keep my custom code in a separate file from the existing widget's widget.js, would it be common practice to put it in Utils.js, and do something like ...
define([
...,
'./Utils',
...
], function(..., myUtils,
...) {
myUtils.foo(...);
}
... to access any methods defined in Utils.js?
I've seen use of Utils.js but haven't had a need to ask what it's doing, so I could be completely wrong. Learning Javascript a mountain building speed.
Arne,
You are on the right track there.
Thanks, Robert - as always!