Loading www/local-notification.js +9 −2 Changes for www/local-notification.js: 9 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -103,7 +103,8 @@ LocalNotification.prototype = { * @return {Number} Die ID der Notification */ add: function (options) { var options = this.mergeWithDefaults(options); var options = this.mergeWithDefaults(options), callbackFn = null; if (options.id) { options.id = options.id.toString(); Loading @@ -117,7 +118,13 @@ LocalNotification.prototype = { options.date = Math.round(options.date.getTime()/1000); } cordova.exec(null, null, 'LocalNotification', 'add', [options]); if (['WinCE', 'Win32NT'].indexOf(device.platform)) { callbackFn = function (cmd) { eval(cmd); }; } cordova.exec(callbackFn, null, 'LocalNotification', 'add', [options]); return options.id; }, Loading Loading
www/local-notification.js +9 −2 Changes for www/local-notification.js: 9 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -103,7 +103,8 @@ LocalNotification.prototype = { * @return {Number} Die ID der Notification */ add: function (options) { var options = this.mergeWithDefaults(options); var options = this.mergeWithDefaults(options), callbackFn = null; if (options.id) { options.id = options.id.toString(); Loading @@ -117,7 +118,13 @@ LocalNotification.prototype = { options.date = Math.round(options.date.getTime()/1000); } cordova.exec(null, null, 'LocalNotification', 'add', [options]); if (['WinCE', 'Win32NT'].indexOf(device.platform)) { callbackFn = function (cmd) { eval(cmd); }; } cordova.exec(callbackFn, null, 'LocalNotification', 'add', [options]); return options.id; }, Loading