From a0756d1dbd9e8bbb37293b8b756f6aee1e205d65 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 21 Jun 2010 12:09:24 +0200 Subject: Make Eclipse happier - extended .hgignore - fix some problems in lib/persistent-page-mod.js --- .hgignore | 2 ++ lib/persistent-page-mod.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.hgignore b/.hgignore index 6912cd1..3b99b0a 100644 --- a/.hgignore +++ b/.hgignore @@ -1,2 +1,4 @@ .*~ tmp/.* +.project/* +.settings/* \ No newline at end of file diff --git a/lib/persistent-page-mod.js b/lib/persistent-page-mod.js index 5c00a8f..ecf9b39 100644 --- a/lib/persistent-page-mod.js +++ b/lib/persistent-page-mod.js @@ -1,4 +1,5 @@ var timer = require("timer"); +var self = require("self"); function PersistentPageMod(window, callback) { memory.track(this); @@ -32,7 +33,7 @@ PersistentPageMod.prototype = { // tons of times in a tiny period and end up hanging the browser // for a while. var self = this; - this.timerID = timer.setTimeout(function() self.doMod(), + this.timerID = timer.setTimeout(function() {self.doMod();}, this.REPLACE_DELAY); } break; -- cgit