From cb5fca695f63a4e8092fd25cc097e907f4cac803 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 1 Jan 2009 21:28:24 +1100 Subject: [PATCH] Rename the misspelled util.interruptableRange to util.interruptibleRange. --- common/content/buffer.js | 2 +- common/content/hints.js | 2 +- common/content/liberator.js | 2 +- common/content/util.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/content/buffer.js b/common/content/buffer.js index 2a5b3ff4..429818a6 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -197,7 +197,7 @@ function Buffer() //{{{ { if (mappings.repeat) { - for (let i in util.interruptableRange(0, Math.max(count, 1), 100)) + for (let i in util.interruptibleRange(0, Math.max(count, 1), 100)) mappings.repeat(); } }, diff --git a/common/content/hints.js b/common/content/hints.js index 4ddaa980..fbca93bd 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -209,7 +209,7 @@ function Hints() //{{{ let scrollY = doc.defaultView.scrollY; inner: - for (let i in (util.interruptableRange(start, end + 1, 500))) + for (let i in (util.interruptibleRange(start, end + 1, 500))) { let hint = pageHints[i]; [elem, text, span, imgspan] = hint; diff --git a/common/content/liberator.js b/common/content/liberator.js index 9d65e141..cc0b78e9 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -449,7 +449,7 @@ const liberator = (function () //{{{ let each, eachUnits, totalUnits; let total = 0; - for (let i in util.interruptableRange(0, count, 500)) + for (let i in util.interruptibleRange(0, count, 500)) { let now = Date.now(); method(); diff --git a/common/content/util.js b/common/content/util.js index 81609183..0e80d86b 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -551,7 +551,7 @@ const util = { //{{{ * @param {number} time The time in milliseconds between thread yields. * @returns {Iterator(Object)} */ - interruptableRange: function interruptableRange(start, end, time) + interruptibleRange: function interruptibleRange(start, end, time) { let endTime = Date.now() + time; while (start < end)