let's wrap when you go off the beginning

This commit is contained in:
Matthew Hodgson
2015-08-14 15:51:57 +01:00
parent 960a38fe43
commit 316a28838f
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -182,12 +182,12 @@ module.exports = {
var self = this;
setTimeout(function() {
if (self.refs.textarea.getDOMNode().value != '') {
if (self.refs.textarea && self.refs.textarea.getDOMNode().value != '') {
self.onTypingActivity();
} else {
self.onFinishedTyping();
}
}, 10);
}, 10); // XXX: what is this 10ms setTimeout doing? Looks hacky :(
},
onEnter: function(ev) {