• Léo-Paul Géneau's avatar
    erp5_officejs_drone_capture_flag: limit variables conflicts · 23c9f1b0
    Léo-Paul Géneau authored
    Move `spawnDrone` function (where user code is evaluated) and rename
    used variables to avoid conflicts with the variables used by the user.
    Previously if an user would have assign a value to `i` without declaring
    the variable first, it would not have thrown any error as `i` was
    already existing in the execution scope.
    23c9f1b0
drone_simulator_logic_js.js 38.2 KB