mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user