Commit 602fdbdd authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

PluginResult kann nur ein Argument übergeben werden und nicht 2

parent c456f9c7
Loading
Loading
Loading
Loading
+3 −1
Changes for src/wp8/LocalNotification.cs: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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));
                }
            }

+2 −4
Changes for www/local-notification.js: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -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) {