make sure it exists (#73)

This commit is contained in:
Luke Westby 2018-06-13 16:49:45 -07:00 committed by GitHub
parent 24c1b7fa06
commit 2342836ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ CustomElement.create({
onAttributeChange: function(name, previous, next) {
if (name === 'data-autoresize') {
this._autoresize = next !== null
if (!this._textarea) return
this._updateListener()
}
},