Commit 602fdbdd by Sebastián Katzer

PluginResult kann nur ein Argument übergeben werden und nicht 2

parent c456f9c7
......@@ -47,7 +47,9 @@ namespace Cordova.Extension.Commands
if (!string.IsNullOrEmpty(options.Foreground))
{
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, options.Foreground + "," + options.ID));
string arguments = String.Format("{0}({1})", options.Foreground, options.ID);
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, arguments));
}
}
......
......@@ -30,10 +30,8 @@ LocalNotification.prototype = {
foreground: ''
};
var callbackFn = function (callbackName, id) {
if (callbackName) {
eval(callbackName + '(' + id + ')');
}
var callbackFn = function (cmd) {
eval(cmd);
};
for (var key in defaults) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment