Commit 40187ef1 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Implement update on windows

parent beca9e54
Loading
Loading
Loading
Loading
+17 −12
Changes for src/windows/LocalNotificationCore.js: 17 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -146,18 +146,6 @@ exports.core = {
            .update(notification);
    },

    /**
     * Updates a single local notification.
     *
     * @param {Object} notification
     *      The local notification
     * @param {Object} updates
     *      Updated properties
     */
    updateLocalNotification: function (notification, updates) {

    },

    /**
     * Updates existing notifications specified by IDs in options.
     *
@@ -174,6 +162,23 @@ exports.core = {
        }
    },

    /**
     * Updates a single local notification.
     *
     * @param {Object} notification
     *      The local notification
     * @param {Object} updates
     *      Updated properties
     */
    updateLocalNotification: function (notification, updates) {
        for (var key in updates) {
            notification[key] = updates[key];
        }

        this.cancelLocalNotification(notification.id);
        this.scheduleLocalNotification(notification);
    },

    /**
     * Clears the specified notifications.
     *