You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
make it obvious arguments are optional
because now they have a setter
This commit is contained in:
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
import {diffAtCaret, diffDeletion} from "./diff";
|
||||
|
||||
export default class EditorModel {
|
||||
constructor(parts, partCreator, updateCallback) {
|
||||
constructor(parts, partCreator, updateCallback = null) {
|
||||
this._parts = parts;
|
||||
this._partCreator = partCreator;
|
||||
this._activePartIdx = null;
|
||||
|
||||
@@ -363,7 +363,7 @@ export function autoCompleteCreator(getAutocompleterComponent, updateQuery) {
|
||||
}
|
||||
|
||||
export class PartCreator {
|
||||
constructor(room, client, autoCompleteCreator) {
|
||||
constructor(room, client, autoCompleteCreator = null) {
|
||||
this._room = room;
|
||||
this._client = client;
|
||||
this._autoCompleteCreator = {create: autoCompleteCreator && autoCompleteCreator(this)};
|
||||
|
||||
Reference in New Issue
Block a user