Use the correct name of the result, not just hard-coded 'result'.

This commit is contained in:
ahocevar
2012-08-13 13:29:34 +02:00
parent 94f3ab393f
commit 006d98151f
2 changed files with 15 additions and 12 deletions

View File

@@ -94,9 +94,10 @@ OpenLayers.WPSClient = OpenLayers.Class({
* geometries or features.
* success - {Function} Callback to call when the process is complete.
* This function is called with an outputs object as argument, which
* will have a 'result' property. For processes that generate spatial
* output, this will either be a single <OpenLayers.Feature.Vector> or
* an array of features.
* will have a property with the name of the requested output (e.g.
* 'result'). For processes that generate spatial output, the value
* will either be a single <OpenLayers.Feature.Vector> or an array of
* features.
* scope - {Object} Optional scope for the success callback.
*/
execute: function(options) {