mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-13 00:06:16 +02:00
lint: attributepool fix incorrect commit
This commit is contained in:
parent
76744d9783
commit
aeab9cc0ad
@ -70,7 +70,7 @@ AttributePool.prototype.getAttribValue = function (num) {
|
||||
};
|
||||
|
||||
AttributePool.prototype.eachAttrib = function (func) {
|
||||
for (const n of this.numToAttrib) {
|
||||
for (const n of Object.keys(this.numToAttrib)) {
|
||||
const pair = this.numToAttrib[n];
|
||||
func(pair[0], pair[1]);
|
||||
}
|
||||
@ -87,7 +87,7 @@ AttributePool.prototype.fromJsonable = function (obj) {
|
||||
this.numToAttrib = obj.numToAttrib;
|
||||
this.nextNum = obj.nextNum;
|
||||
this.attribToNum = {};
|
||||
for (const n of this.numToAttrib) {
|
||||
for (const n of Object.keys(this.numToAttrib)) {
|
||||
this.attribToNum[String(this.numToAttrib[n])] = Number(n);
|
||||
}
|
||||
return this;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user