mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 23:27:58 +01:00
Rename the misspelled util.interruptableRange to util.interruptibleRange.
This commit is contained in:
@@ -197,7 +197,7 @@ function Buffer() //{{{
|
|||||||
{
|
{
|
||||||
if (mappings.repeat)
|
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();
|
mappings.repeat();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ function Hints() //{{{
|
|||||||
let scrollY = doc.defaultView.scrollY;
|
let scrollY = doc.defaultView.scrollY;
|
||||||
|
|
||||||
inner:
|
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];
|
let hint = pageHints[i];
|
||||||
[elem, text, span, imgspan] = hint;
|
[elem, text, span, imgspan] = hint;
|
||||||
|
|||||||
@@ -449,7 +449,7 @@ const liberator = (function () //{{{
|
|||||||
let each, eachUnits, totalUnits;
|
let each, eachUnits, totalUnits;
|
||||||
let total = 0;
|
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();
|
let now = Date.now();
|
||||||
method();
|
method();
|
||||||
|
|||||||
@@ -551,7 +551,7 @@ const util = { //{{{
|
|||||||
* @param {number} time The time in milliseconds between thread yields.
|
* @param {number} time The time in milliseconds between thread yields.
|
||||||
* @returns {Iterator(Object)}
|
* @returns {Iterator(Object)}
|
||||||
*/
|
*/
|
||||||
interruptableRange: function interruptableRange(start, end, time)
|
interruptibleRange: function interruptibleRange(start, end, time)
|
||||||
{
|
{
|
||||||
let endTime = Date.now() + time;
|
let endTime = Date.now() + time;
|
||||||
while (start < end)
|
while (start < end)
|
||||||
|
|||||||
Reference in New Issue
Block a user