This addresses issue #3563 by excluding functions in an imported file whose variable arguments are overridden by the file that is importing it. For every argument in the function, 3 things are checked:
Is there a difference between filename and rootFilename for this file, i.e. is this a file that is being imported by another file?
Does the root file contain a redefinition of the variable?
Is this a variable argument?
If all 3 of these conditions are met for any of the arguments, the function is excluded from the final output, and any variables using this function to obtain a value remain undefined. Since silently ignoring these functions might lead to unexpected behaviors, perhaps Less could signal to the user in some way that it's doing this?
This addresses issue #3563 by excluding functions in an imported file whose variable arguments are overridden by the file that is importing it. For every argument in the function, 3 things are checked:
filename
androotFilename
for this file, i.e. is this a file that is being imported by another file?If all 3 of these conditions are met for any of the arguments, the function is excluded from the final output, and any variables using this function to obtain a value remain undefined. Since silently ignoring these functions might lead to unexpected behaviors, perhaps Less could signal to the user in some way that it's doing this?