mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Ignore ref and key properties 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