소스 검색

Improved performance for isScheduled for windows

Sebastián Katzer 10 년 전
부모
커밋
44e9768702
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/windows/LocalNotificationCore.js

+ 3 - 1
src/windows/LocalNotificationCore.js

@@ -293,7 +293,9 @@ exports.core = {
      *      Local notification ID
      */
     isScheduled: function (id) {
-        return this.getScheduledIds().indexOf(id) > -1;
+        var toast = this.findToastById(id);
+
+        return toast && this.isToastScheduled(toast);
     },
 
     /**