From e387c70f819c78dd706a5a817003bacc7e92ca1f Mon Sep 17 00:00:00 2001 From: corinnekrych Date: Tue, 24 Jul 2012 18:38:21 +0300 Subject: [PATCH] fix issues in IE8 with onPropertyChange. IE8 was looping. --- lib/ace/keyboard/textinput.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index e4ba3e1c..56c9966b 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -118,7 +118,9 @@ var TextInput = function(parentNode, host) { var onPropertyChange = function(e) { setTimeout(function() { if (!inCompostion) - sendText(); + if(text.value != "") { + sendText(); + } }, 0); };