1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 23:45:47 +01:00

Give *.penta plugins their own JS sandboxen.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-26 14:35:58 -05:00
parent b051e4edc2
commit 787f063692
5 changed files with 18 additions and 6 deletions

View File

@@ -1214,6 +1214,15 @@ update(iter, {
func.call(self, val);
},
indexOf: function indexOf(iter, elem) {
let i = 0;
for (let item in iter) {
if (item == elem)
return i;
i++;
}
},
/**
* Returns the array that results from applying *func* to each property of
* *obj*.