Hi PMario,
Most of the time I prefer to define a function this way (in particular for
a library) :
var myUtilFunction = function(a,b,c, ..) {
}
Regards
FrD
Le samedi 21 juillet 2018 10:46:14 UTC+2, PMario a écrit :
>
> On Friday, July 20, 2018 at 10:32:07 PM UTC+2, FrD wrote:
>>
>>
>> So
Hi,
Sorry, I found a typo in my Utils.js tiddler : I wrote export. ... instead
of export*s*. ...
My bad.
Everything's fine now.
Regards
FrD
Le vendredi 20 juillet 2018 22:32:07 UTC+2, FrD a écrit :
>
> Hi,
>
> I've written two js macros, and part of the code is the same.
>
> So I've put this
On Friday, July 20, 2018 at 10:32:07 PM UTC+2, FrD wrote:
>
>
> So I've put this part in a function (say : myUtilFunction) in another
> tiddler (say : Utils.js, application/javascript, and module-type :
> library). At the end : exports.myUtilFunction = myUtilFunction;
>
Did you define