mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 00:17:59 +01:00
Standardize misspellings of the 'class' reserved word.
--HG-- branch : groups
This commit is contained in:
@@ -43,7 +43,7 @@ var Tabs = Module("tabs", {
|
|||||||
|
|
||||||
cleanup: function cleanup() {
|
cleanup: function cleanup() {
|
||||||
for (let [i, tab] in Iterator(this.allTabs)) {
|
for (let [i, tab] in Iterator(this.allTabs)) {
|
||||||
let node = function node(clas) document.getAnonymousElementByAttribute(tab, "class", clas);
|
let node = function node(class_) document.getAnonymousElementByAttribute(tab, "class", class_);
|
||||||
for (let elem in values(["dactyl-tab-icon-number", "dactyl-tab-number"].map(node)))
|
for (let elem in values(["dactyl-tab-icon-number", "dactyl-tab-number"].map(node)))
|
||||||
if (elem)
|
if (elem)
|
||||||
elem.parentNode.parentNode.removeChild(elem.parentNode);
|
elem.parentNode.parentNode.removeChild(elem.parentNode);
|
||||||
@@ -53,7 +53,7 @@ var Tabs = Module("tabs", {
|
|||||||
updateTabCount: function () {
|
updateTabCount: function () {
|
||||||
for (let [i, tab] in Iterator(this.visibleTabs)) {
|
for (let [i, tab] in Iterator(this.visibleTabs)) {
|
||||||
if (dactyl.has("Gecko2")) {
|
if (dactyl.has("Gecko2")) {
|
||||||
let node = function node(clas) document.getAnonymousElementByAttribute(tab, "class", clas);
|
let node = function node(class_) document.getAnonymousElementByAttribute(tab, "class", class_);
|
||||||
if (!node("dactyl-tab-number")) {
|
if (!node("dactyl-tab-number")) {
|
||||||
let img = node("tab-icon-image");
|
let img = node("tab-icon-image");
|
||||||
if (img) {
|
if (img) {
|
||||||
|
|||||||
Reference in New Issue
Block a user