fix loading editor in iframe on ie9

This commit is contained in:
nightwing 2013-01-25 17:52:23 +04:00
commit 59de8b0ff4

View file

@ -63,7 +63,9 @@ var TextInput = function(parentNode, host) {
var isSelectionEmpty = true;
// FOCUS
var isFocused = document.activeElement === text;
// ie9 throws error if document.activeElement is accessed too soon
try { var isFocused = document.activeElement === text; } catch(e) {}
event.addListener(text, "blur", function() {
host.onBlur();
isFocused = false;