Fix cut/copy in Firefox (setData() may return nothing).
This commit is contained in:
parent
df68336921
commit
f39f16e12f
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ var TextInput = function(parentNode, host) {
|
||||||
var mime = USE_IE_MIME_TYPE ? "Text" : "text/plain";
|
var mime = USE_IE_MIME_TYPE ? "Text" : "text/plain";
|
||||||
if (data) {
|
if (data) {
|
||||||
// Safari 5 has clipboardData object, but does not handle setData()
|
// Safari 5 has clipboardData object, but does not handle setData()
|
||||||
return clipboardData.setData(mime, data);
|
return clipboardData.setData(mime, data) !== false;
|
||||||
} else {
|
} else {
|
||||||
return clipboardData.getData(mime);
|
return clipboardData.getData(mime);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue