Pass a clone of the parameter map to macros, so if the macro
modifyes the object we still have the original version.
This commit is contained in:
parent
eb2f292877
commit
5b862803c6
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ public class Skin {
|
||||||
Object handlerObject = null;
|
Object handlerObject = null;
|
||||||
|
|
||||||
Object[] arguments = new Object[1];
|
Object[] arguments = new Object[1];
|
||||||
arguments[0] = parameters;
|
// pass a clone of the parameter map so if the script changes it,
|
||||||
|
// we still keep the original version.
|
||||||
|
arguments[0] = parameters.clone ();
|
||||||
|
|
||||||
// flag to tell whether we found our invocation target object
|
// flag to tell whether we found our invocation target object
|
||||||
boolean objectFound = true;
|
boolean objectFound = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue