Merge pull request #13887 from atom/as-ignore-key-ref-on-text-editor

Ignore `ref` and `key` props in `TextEditor.prototype.update`
This commit is contained in:
Antonio Scandurra
2017-02-27 18:29:26 +01:00
committed by GitHub

View File

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