You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Eddy Verbruggen (JIRA)" <ji...@apache.org> on 2015/03/01 13:56:04 UTC
[jira] [Created] (CB-8580) PluginResult.Status.NO_RESULT is broken
(error CB is invoked instead)
Eddy Verbruggen created CB-8580:
-----------------------------------
Summary: PluginResult.Status.NO_RESULT is broken (error CB is invoked instead)
Key: CB-8580
URL: https://issues.apache.org/jira/browse/CB-8580
Project: Apache Cordova
Issue Type: Bug
Components: WP8
Affects Versions: 3.7.0
Reporter: Eddy Verbruggen
Assignee: Jesse MacFadyen
Before 3.7.0 a plugin could respond with:
PluginResult pluginResult = new PluginResult(PluginResult.Status.NO_RESULT);
pluginResult.KeepCallback = true;
this.DispatchCommandResult(pluginResult);
This meant the successCB nor the errorCB was invoked awaiting a further response from native code.
Since 3.7.0 however in this case the errorCB is invoked due to this difference:
Before 3.7.0: https://github.com/apache/cordova-wp8/blob/3.5.x/common/www/cordova.js#L293
Since 3.7.0: https://github.com/apache/cordova-wp8/blob/3.7.1/template/www/cordova.js#L287
I'd love to see the old behavior in a future release.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org