Subj : Couple of JS Questions
To : Apam
From : Digital Man
Date : Mon May 23 2022 10:00 pm
Re: Couple of JS Questions
By: Apam to Digital Man on Tue May 24 2022 10:18 am
> -=> On Mon May 23 11:49:00 2022, Digital Man wrote to Apam <=-
>
> > load(), require() and js.exec() are used to execute a JS file from a JS
> > file.
>
> I think I need to use js.exec.apply() so I can pass the query argument.. but
> can't seem to find any information on it..
>
> I see it's used in install-xtrn
>
> var result = js.exec.apply(null
> ,[js_file, item.startup_dir, {}].concat(js_args));
>
> but unsure what that first null is.
js.exec() is a function, so:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
--
digital man (rob)
Rush quote #19:
Rebel without a conscience, martyr without a cause
Norco, CA WX: 57.6�F, 87.0% humidity, 2 mph SE wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net