Fix error method generateAttributeSet does not exist

This commit is contained in:
Hadi Nategh 2020-01-22 11:50:58 +01:00
parent 1df5124246
commit fd31946f4e
3 changed files with 3 additions and 4 deletions

View File

@ -96,7 +96,7 @@ function et2_createWidget(_name, _attrs, _parent) {
constructor = et2_registry[nodeName + "_ro"];
}
// Do an sanity check for the attributes
constructor.prototype.generateAttributeSet(_attrs);
et2_core_inheritance_1.ClassWithAttributes.generateAttributeSet(et2_attribute_registry[constructor.name], _attrs);
// Create the new widget and return it
return new constructor(_parent, _attrs);
}

File diff suppressed because one or more lines are too long

View File

@ -103,8 +103,7 @@ export function et2_createWidget(_name : string, _attrs : object, _parent? : any
}
// Do an sanity check for the attributes
constructor.prototype.generateAttributeSet(_attrs);
ClassWithAttributes.generateAttributeSet(et2_attribute_registry[constructor.name], _attrs);
// Create the new widget and return it
return new constructor(_parent, _attrs);
}