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:
@@ -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*.
|
||||
|
||||
Reference in New Issue
Block a user