| Index: lib/notification.js |
| =================================================================== |
| --- a/lib/notification.js |
| +++ b/lib/notification.js |
| @@ -21,23 +21,23 @@ |
| Cu.import("resource://gre/modules/Services.jsm"); |
| -let {Prefs} = require("prefs"); |
| -let {Downloader, Downloadable, MILLIS_IN_MINUTE, MILLIS_IN_HOUR, MILLIS_IN_DAY} = require("downloader"); |
| -let {Utils} = require("utils"); |
| -let {Matcher, defaultMatcher} = require("matcher"); |
| -let {Filter, RegExpFilter, WhitelistFilter} = require("filterClasses"); |
| +var {Prefs} = require("prefs"); |
| +var {Downloader, Downloadable, MILLIS_IN_MINUTE, MILLIS_IN_HOUR, MILLIS_IN_DAY} = require("downloader"); |
| +var {Utils} = require("utils"); |
| +var {Matcher, defaultMatcher} = require("matcher"); |
| +var {Filter, RegExpFilter, WhitelistFilter} = require("filterClasses"); |
| -let INITIAL_DELAY = 1 * MILLIS_IN_MINUTE; |
| -let CHECK_INTERVAL = 1 * MILLIS_IN_HOUR; |
| -let EXPIRATION_INTERVAL = 1 * MILLIS_IN_DAY; |
| -let TYPE = { |
| +var INITIAL_DELAY = 1 * MILLIS_IN_MINUTE; |
| +var CHECK_INTERVAL = 1 * MILLIS_IN_HOUR; |
| +var EXPIRATION_INTERVAL = 1 * MILLIS_IN_DAY; |
| +var TYPE = { |
| information: 0, |
| question: 1, |
| critical: 2 |
| }; |
| -let showListeners = []; |
| -let questionListeners = {}; |
| +var showListeners = []; |
| +var questionListeners = {}; |
| function getNumericalSeverity(notification) |
| { |
| @@ -67,14 +67,14 @@ |
| * The object providing actual downloading functionality. |
| * @type Downloader |
| */ |
| -let downloader = null; |
| -let localData = []; |
| +var downloader = null; |
| +var localData = []; |
| /** |
| * Regularly fetches notifications and decides which to show. |
| * @class |
| */ |
| -let Notification = exports.Notification = |
| +var Notification = exports.Notification = |
| { |
| /** |
| * Called on module startup. |