Ignore ref and key properties in TextEditor.prototype.update

This commit is contained in:
Antonio Scandurra
2017-02-27 11:15:20 +01:00
parent 2e72f39a21
commit acbe228901

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)