Skip to content

Commit

Permalink
Update CpsScript to Invoke Closures
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-terrana committed Feb 19, 2018
1 parent 50afbc8 commit edb17e0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -95,7 +95,7 @@ public final Object invokeMethod(String name, Object args) {
// check for user defined closures in the script binding
if (getBinding().hasVariable(name)){
if (getBinding().getVariable(name) instanceof CpsClosure2){
CpsClosure2 local_closure = (CpsClosure2) getBinding().getVariable(name);
CpsClosure2 local_closure = (CpsClosure2) getBinding().getVariable(name);
return local_closure.call(args);
}
}
Expand Down

0 comments on commit edb17e0

Please sign in to comment.