1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 07:05:46 +01:00

Support Firefox 45 (without e10s).

This commit is contained in:
Kris Maglione
2015-12-19 20:09:04 -08:00
parent e3c3748511
commit bc9eb79fb3
41 changed files with 614 additions and 421 deletions

View File

@@ -222,9 +222,13 @@ var CompletionContext = Class("CompletionContext", {
* @function
*/
this.getKey = function getKey(item, key) {
return (typeof self.keys[key] == "function") ? self.keys[key].call(this, item.item) :
key in self.keys ? item.item[self.keys[key]]
: item.item[key];
if (typeof self.keys[key] == "function")
return self.keys[key].call(this, item.item);
if (key in self.keys)
return item.item[self.keys[key]];
return item.item[key];
};
return this;
},
@@ -1318,8 +1322,8 @@ var Completion = Module("completion", {
},
setter: function setter(values) {
if (values.length == 1 && !hasOwnProperty(values[0], this.values)
&& Array.every(values[0], v => hasOwnProperty(this.valueMap, v)))
if (values.length == 1 && !hasOwnProp(values[0], this.values)
&& Array.every(values[0], v => hasOwnProp(this.valueMap, v)))
return Array.map(values[0], v => this.valueMap[v]);
return values;