mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 23:57:59 +01:00
Rename the misspelled util.interruptableRange to util.interruptibleRange.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user