From acbe228901c73cd54bb83fcc4816020807f38707 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 27 Feb 2017 11:15:20 +0100 Subject: [PATCH] Ignore `ref` and `key` properties in `TextEditor.prototype.update` --- src/text-editor.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/text-editor.coffee b/src/text-editor.coffee index 13b8a0bfa..3cdd363a7 100644 --- a/src/text-editor.coffee +++ b/src/text-editor.coffee @@ -353,7 +353,8 @@ class TextEditor extends Model cursor.setShowCursorOnSelection(value) for cursor in @getCursors() else - throw new TypeError("Invalid TextEditor parameter: '#{param}'") + if param isnt 'ref' and param isnt 'key' + throw new TypeError("Invalid TextEditor parameter: '#{param}'") @displayLayer.reset(displayLayerParams)