diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 53e03869..36bef7fe 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1386,11 +1386,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { if (config.tabbrowser.tabContainer._positionPinnedTabs) config.tabbrowser.tabContainer._positionPinnedTabs(); - }, - /* - validator: function (opts) dactyl.has("Gecko2") || - Option.validIf(!/[nN]/.test(opts), "Tab numbering not available in this " + config.host + " version") - */ + } } ].filter(group => !group.feature || dactyl.has(group.feature)); diff --git a/common/modules/base.jsm b/common/modules/base.jsm index e08588a9..331000b1 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -30,30 +30,6 @@ let { __lookupGetter__, __lookupSetter__, __defineGetter__, __defineSetter__, hasOwnProperty = Function.call.bind(hasOwnProperty); propertyIsEnumerable = Function.call.bind(propertyIsEnumerable); -// Gecko 24. -if (!("find" in Array.prototype)) - Object.defineProperty(Array.prototype, "find", { - configurable: true, - writable: true, - value: function Array_find(pred, self) { - for (let [i, elem] of this.entries()) - if (pred.call(self, elem, i, this)) - return elem; - } - }); - -if (!("findIndex" in Array.prototype)) - Object.defineProperty(Array.prototype, "findIndex", { - configurable: true, - writable: true, - value: function Array_findIndex(pred, self) { - for (let [i, elem] of this.entries()) - if (pred.call(self, elem, i, this)) - return i; - return -1; - } - }); - function require(module_, target) { if (/^[A-Za-z0-9]+:/.test(module_)) return module(module_);