geoserver/geoserver — pull request #514 by tschaub (2014-02-28 19:55:29+00:00)
Title: Fix issue invoking functions with JS scripting extension

The JS scripting extension only allows functions to be called once currently. This is because the engine scope is reinitialized in the `invokeFunction` and `invokeMethod` calls. The alternative is to put the global scope in the function's scope chain.