EditWidget: Pass attributes from parseTreeNode to child widgets (#4740)

optimising-macrocalls
saqimtiaz 2020-06-27 13:33:14 +02:00 zatwierdzone przez GitHub
rodzic d46872c061
commit 35a842ade6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 10 usunięć

Wyświetl plik

@ -54,16 +54,7 @@ EditWidget.prototype.execute = function() {
// Make the child widgets
this.makeChildWidgets([{
type: "edit-" + this.editorType,
attributes: {
tiddler: {type: "string", value: this.editTitle},
field: {type: "string", value: this.editField},
index: {type: "string", value: this.editIndex},
"class": {type: "string", value: this.editClass},
"placeholder": {type: "string", value: this.editPlaceholder},
"tabindex": {type: "string", value: this.editTabIndex},
"focus": {type: "string", value: this.editFocus},
"cancelPopups": {type: "string", value: this.editCancelPopups}
},
attributes: this.parseTreeNode.attributes,
children: this.parseTreeNode.children
}]);
};