make it obvious arguments are optional

because now they have a setter
pull/21833/head
Bruno Windels 2019-08-06 16:32:43 +02:00
parent 063eabed71
commit d22745a5b2
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)};