Documentation on fl_builder_render_js might be outdated?

The filter ‘fl_builder_render_js’ looks to be outdated / missing 1 parameter in the documentation

In the code it has 4 parameters, and the documentation has 3. The 4th is $include_global which as I can see looks to be for the global js. This was a neat parameter for the place where i used the filter, as this allowed me to use “native parameters” for inserting the javascript only once.

If you where to follow the example in the documentation it’ll console.log(“hello world!”) multiple times. Atleast it did for me, i have themer layout (header and footer) activated if that affects it.

Anyways, the $include_global parameter is useful if you want to include som js only once :slight_smile: