diff options
| author | Jules <jules@asdf.us> | 2014-11-29 00:57:32 -0500 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2014-11-29 00:57:32 -0500 |
| commit | b25804afdf38918c9e205e9acda50bdbfe24cd12 (patch) | |
| tree | cc7fee7227064202f2d041a10c89c7941097dc70 /js/copy.js | |
| parent | 9f0938e98e329d26f06714a1e4937a4ec7e862ba (diff) | |
| parent | 05d359b6cdabc42025881e0a39c00995d8a29394 (diff) | |
Merge branch 'master' of ghghgh.us:ascii
Diffstat (limited to 'js/copy.js')
| -rw-r--r-- | js/copy.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/js/copy.js b/js/copy.js deleted file mode 100644 index d1ae716..0000000 --- a/js/copy.js +++ /dev/null @@ -1,22 +0,0 @@ -var clipboard = (function () { - - var disabled = false; - var contentType = 'text/plain;charset=utf-8' - document.body.addEventListener('copy', function (e) { - if (disabled) { return } - if (e.clipboardData) { - e.preventDefault(); - e.clipboardData.setData(contentType, canvas.ascii()); - } - if (window.clipboardData) { - e.returnValue = false; - window.clipboardData.setData(contentType, canvas.ascii()); - } - }, false); - - return { - enable: function(){ disabled = false } - disable: function(){ disabled = true } - } - -})()
\ No newline at end of file |
