1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:17:59 +01:00

Make :pageinfo extensible

This commit is contained in:
Kris Maglione
2008-10-02 19:22:02 +00:00
parent 9dd5f1612b
commit 8100d941f8
7 changed files with 240 additions and 226 deletions

View File

@@ -28,6 +28,13 @@ the terms of any one of the MPL, the GPL or the LGPL.
liberator.util = { //{{{
arrayIter: function (ary)
{
let length = ary.length;
for (let i = 0; i < length; i++)
yield ary[i];
},
clip: function (str, length)
{
return str.length <= length ? str : str.substr(0, length - 3) + "...";