better readability
This commit is contained in:
@@ -419,9 +419,9 @@ class HTML5Window
|
|||||||
|
|
||||||
private function handleCutOrCopyEvent(event:ClipboardEvent):Void
|
private function handleCutOrCopyEvent(event:ClipboardEvent):Void
|
||||||
{
|
{
|
||||||
var text = "";
|
var text = Clipboard.text;
|
||||||
if (Clipboard.text != null) {
|
if (text == null) {
|
||||||
text = Clipboard.text;
|
text = "";
|
||||||
}
|
}
|
||||||
event.clipboardData.setData("text/plain", text);
|
event.clipboardData.setData("text/plain", text);
|
||||||
if (event.cancelable) event.preventDefault();
|
if (event.cancelable) event.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user