aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/clipboard.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/clipboard.coffee b/lib/clipboard.coffee
index 836b57e4..2b28df70 100644
--- a/lib/clipboard.coffee
+++ b/lib/clipboard.coffee
@@ -15,15 +15,13 @@ Clipboard =
document.execCommand("Copy")
document.body.removeChild(textArea)
- paste: (refocusElement = null) ->
+ paste: ->
textArea = @._createTextArea()
document.body.appendChild(textArea)
textArea.focus()
document.execCommand("Paste")
value = textArea.value
document.body.removeChild(textArea)
- # The caller wants this element refocused.
- refocusElement.focus() if refocusElement
value