This commit is contained in:
antelle 2019-09-20 22:26:32 +02:00
parent 2f07c87801
commit 9a19339ec5
4 changed files with 9 additions and 6 deletions

View File

@ -196,6 +196,10 @@ class Collection {
}
}
sort() {
this[SymbolArray].sort(this.comparator);
}
fill() {
throw new Error('Not implemented');
}
@ -231,7 +235,6 @@ const ProxiedArrayMethods = [
'reverse',
'slice',
'some',
'sort',
'values'
];

View File

@ -103,7 +103,7 @@ class FieldViewAutocomplete extends FieldViewText {
this.input.val(selectedItem);
this.endEdit(selectedItem);
} else {
this.afterPaint(function() {
this.afterPaint(() => {
this.input.focus();
});
}

View File

@ -102,7 +102,7 @@ class FieldViewTags extends FieldViewText {
this.input.focus();
this.setTags();
}
this.afterPaint(function() {
this.afterPaint(() => {
this.input.focus();
});
}

View File

@ -622,9 +622,9 @@ class OpenView extends View {
this.inputEl.attr('disabled', 'disabled');
this.busy = true;
this.params.password = this.passwordInput.value;
this.afterPaint(
this.model.openFile.bind(this.model, this.params, this.openDbComplete.bind(this))
);
this.afterPaint(() => {
this.model.openFile(this.params, err => this.openDbComplete(err));
});
}
openDbComplete(err) {