Page MenuHome GnuPG

No OneTemporary

diff --git a/package/timer.jsm b/package/timer.jsm
index 91072564..aee18054 100644
--- a/package/timer.jsm
+++ b/package/timer.jsm
@@ -1,32 +1,32 @@
/*global Components: false, EnigmailLog: false, EnigmailPrefs: false */
/*jshint -W097 */
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
"use strict";
const EXPORTED_SYMBOLS = ["EnigmailTimer"];
const Cc = Components.classes;
const Ci = Components.interfaces;
const EnigmailTimer = {
/**
* wait a defined number of miliseconds, then call a callback function
* asynchronously
*
* @callbackFunction: Function - any function specification
* @sleepTimeMs: Number - optional number of miliseconds to delay
* (0 if not specified)
*/
- setTimeout: function(callbackFunction, sleepTimeMs) {
+ setTimeout: function(callbackFunction, sleepTimeMs = 0) {
const timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
timer.initWithCallback(callbackFunction,
- sleepTimeMs || 0,
+ sleepTimeMs,
Ci.nsITimer.TYPE_ONE_SHOT);
return timer;
}
};

File Metadata

Mime Type
text/x-diff
Expires
Fri, Feb 6, 8:07 AM (1 h, 12 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
52/58/22f37a9ba54aaf95e1fe07687701

Event Timeline