1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 11:24:10 +01:00

Array.find is apparently not a thing.

This commit is contained in:
Kris Maglione
2014-02-25 09:05:57 -08:00
parent f43eaec6cc
commit a86e71ef81

View File

@@ -1504,7 +1504,7 @@ var Options = Module("options", {
function val(obj) {
if (isArray(opt.defaultValue)) {
let val = Array.find(obj, re => (re.key == extra.key));
let val = [].find.call(obj, re => (re.key == extra.key));
return val && val.result;
}
if (hasOwnProperty(opt.defaultValue, extra.key))