[Pkg-mozext-commits] [itsalltext] 419/459: Wait before starting the working dir cleaner
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit 591712fde373df6bcf5848e0ac242afda13b57be
Author: Christian Höltje <docwhat at gerf.org>
Date: Sat May 18 17:14:08 2013 -0400
Wait before starting the working dir cleaner
This ensures the preferences are running correctly.
---
src/chrome/content/itsalltext.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/chrome/content/itsalltext.js b/src/chrome/content/itsalltext.js
index c22502b..4d7d14d 100644
--- a/src/chrome/content/itsalltext.js
+++ b/src/chrome/content/itsalltext.js
@@ -640,9 +640,6 @@ ItsAllText.prototype.init = function () {
// Start watching the preferences.
this.preference_observer.register();
- /* Clean the edit directory whenever we create a new window. */
- this.cleanWorkingDir();
-
/* Load the various bits needed to make this work. */
this.initScripts();
@@ -650,6 +647,7 @@ ItsAllText.prototype.init = function () {
var itsalltext = this;
setTimeout(function () {
itsalltext.monitor = new itsalltext.Monitor();
+ itsalltext.cleanWorkingDir();
}, 1);
}
@@ -902,9 +900,11 @@ ItsAllText.prototype.keyprintToString = function (keyprint) {
*/
ItsAllText.prototype.cleanWorkingDir = function (force) {
force = typeof(force) === 'boolean'?force:false;
- var last_week, fobj, entries, entry;
+ var last_week, fobj, entries, entry, working_dir;
last_week = Date.now() - (1000 * 60 * 60 * 24 * 7);
- fobj = this.factoryFile(this.getWorkingDir());
+ working_dir = this.getWorkingDir();
+ itsalltext.debug("Cleaning up ", working_dir);
+ fobj = this.factoryFile(working_dir);
if (fobj.exists() && fobj.isDirectory()) {
entries = fobj.directoryEntries;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list