Javascript and more than one instances


    Feb 15 2017 | 6:22 pm
    Hi, i made a maxforlive devices which uses two javascripts. the problem is, that if i use more than one instance of this device, the devices share the same script and makes it impossible to have different settings.
    Does anyone how to remedy this except for working without javascript?
    thanks a lot!

    • Feb 16 2017 | 2:10 pm
      You can control if the data is per-instance or shared... Global variables declared with js keyword "var" are independendly created for each instance of the js.