call a javascript function @param functionName the name of the function @param passedParams the parameters to pass @return the result of the function
(String functionName, Object[] passedParams)
| 166 | * @return the result of the function |
| 167 | */ |
| 168 | public Object jsCall(String functionName, Object[] passedParams) { |
| 169 | Function f = (Function)scope.get(functionName, scope); |
| 170 | Object result = f.call(getContext(), scope, scope, passedParams); |
| 171 | return result; |
| 172 | } |
| 173 | |
| 174 | Scriptable getScope() { |
| 175 | return scope; |
no test coverage detected