mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
lint: attributepool fix incorrect commit
This commit is contained in:
parent
76744d9783
commit
aeab9cc0ad
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ AttributePool.prototype.getAttribValue = function (num) {
|
||||||
};
|
};
|
||||||
|
|
||||||
AttributePool.prototype.eachAttrib = function (func) {
|
AttributePool.prototype.eachAttrib = function (func) {
|
||||||
for (const n of this.numToAttrib) {
|
for (const n of Object.keys(this.numToAttrib)) {
|
||||||
const pair = this.numToAttrib[n];
|
const pair = this.numToAttrib[n];
|
||||||
func(pair[0], pair[1]);
|
func(pair[0], pair[1]);
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ AttributePool.prototype.fromJsonable = function (obj) {
|
||||||
this.numToAttrib = obj.numToAttrib;
|
this.numToAttrib = obj.numToAttrib;
|
||||||
this.nextNum = obj.nextNum;
|
this.nextNum = obj.nextNum;
|
||||||
this.attribToNum = {};
|
this.attribToNum = {};
|
||||||
for (const n of this.numToAttrib) {
|
for (const n of Object.keys(this.numToAttrib)) {
|
||||||
this.attribToNum[String(this.numToAttrib[n])] = Number(n);
|
this.attribToNum[String(this.numToAttrib[n])] = Number(n);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue