- Fix attribute inheritance didn't work properly

- Get nextmatch filterheader working
This commit is contained in:
nathangray
2020-02-04 16:07:50 -07:00
parent 12eb1dec61
commit e0bc769315
7 changed files with 88 additions and 27 deletions

View File

@ -125,10 +125,10 @@ var ClassWithAttributes = /** @class */ (function () {
class_tree.push(class_prototype);
class_prototype = Object.getPrototypeOf(class_prototype);
} while (class_prototype !== ClassWithAttributes && n < 50);
for (var i = class_tree.length - 1; i > 0; i--) {
class_tree[i - 1]._attributes = ClassWithAttributes.extendAttributes(class_tree[i - 1]._attributes, class_tree[i]._attributes);
for (var i = class_tree.length - 1; i >= 0; i--) {
attributes = ClassWithAttributes.extendAttributes(attributes, class_tree[i]._attributes);
}
return class_tree[0]._attributes;
return attributes;
};
/**
* Extend current _attributes with the one from the parent class