1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 13:42:27 +01:00

More completion stuff. And move vimperator.png to chrome://liberator2/content/ -- long story.

This commit is contained in:
Kris Maglione
2008-11-24 10:10:49 +00:00
parent b2a87273f8
commit 9b14f6e331
14 changed files with 376 additions and 330 deletions

View File

@@ -272,6 +272,21 @@ const util = { //{{{
return ret;
},
httpGet: function (url)
{
try
{
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", url, false);
xmlhttp.send(null);
return xmlhttp;
}
catch (e)
{
liberator.log("Error opening " + url, 1);
}
},
map: function (obj, fn)
{
let ary = [];
@@ -359,7 +374,7 @@ const util = { //{{{
}
else
{
while (start >= end)
while (start > end)
yield --start;
}
},