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 ...@@ -47,7 +47,9 @@ namespace Cordova.Extension.Commands
if (!string.IsNullOrEmpty(options.Foreground)) 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 = { ...@@ -30,10 +30,8 @@ LocalNotification.prototype = {
foreground: '' foreground: ''
}; };
var callbackFn = function (callbackName, id) { var callbackFn = function (cmd) {
if (callbackName) { eval(cmd);
eval(callbackName + '(' + id + ')');
}
}; };
for (var key in defaults) { 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