Loading src/windows/LocalNotificationCore.js +8 −0 Changes for src/windows/LocalNotificationCore.js: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -200,7 +200,9 @@ exports.core = { clearLocalNotification: function (id) { var notification = this.getAll([id])[0]; try { this.getToastHistory().remove('Toast' + id); } catch (e) {/*Only Phones support the NotificationHistory*/ } if (this.isRepeating(notification)) return; Loading @@ -220,7 +222,9 @@ exports.core = { this.clearLocalNotification(ids[i]); } try { this.getToastHistory().clear(); } catch (e) {/*Only Phones support the NotificationHistory*/ } this.fireEvent('clearall'); }, Loading Loading @@ -251,7 +255,9 @@ exports.core = { history = this.getToastHistory(), toasts = this.getScheduledToasts(); try { history.remove('Toast' + id); } catch (e) {/*Only Phones support the NotificationHistory*/ } for (var i = 0; i < toasts.length; i++) { var toast = toasts[i]; Loading @@ -272,7 +278,9 @@ exports.core = { this.cancelLocalNotification(ids[i]); } try { this.getToastHistory().clear(); } catch (e) {/*Only Phones support the NotificationHistory*/ } this.fireEvent('cancelall'); }, Loading Loading
src/windows/LocalNotificationCore.js +8 −0 Changes for src/windows/LocalNotificationCore.js: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -200,7 +200,9 @@ exports.core = { clearLocalNotification: function (id) { var notification = this.getAll([id])[0]; try { this.getToastHistory().remove('Toast' + id); } catch (e) {/*Only Phones support the NotificationHistory*/ } if (this.isRepeating(notification)) return; Loading @@ -220,7 +222,9 @@ exports.core = { this.clearLocalNotification(ids[i]); } try { this.getToastHistory().clear(); } catch (e) {/*Only Phones support the NotificationHistory*/ } this.fireEvent('clearall'); }, Loading Loading @@ -251,7 +255,9 @@ exports.core = { history = this.getToastHistory(), toasts = this.getScheduledToasts(); try { history.remove('Toast' + id); } catch (e) {/*Only Phones support the NotificationHistory*/ } for (var i = 0; i < toasts.length; i++) { var toast = toasts[i]; Loading @@ -272,7 +278,9 @@ exports.core = { this.cancelLocalNotification(ids[i]); } try { this.getToastHistory().clear(); } catch (e) {/*Only Phones support the NotificationHistory*/ } this.fireEvent('cancelall'); }, Loading