fix copy and paste in chrome

This commit is contained in:
Fabian Jakobs 2011-08-19 16:35:05 +02:00
commit ee6b54046f

View file

@ -185,7 +185,7 @@ var TextInput = function(parentNode, host) {
}
});
if ("onbeforecopy" in text) {
if ("onbeforecopy" in text && typeof clipboardData !== "undefined") {
event.addListener(text, "beforecopy", function(e) {
var copyText = host.getCopyText();
if(copyText)