From ca7dddb1a0ad759d3c762fc323f3604ba939e8c1 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Sat, 29 Nov 2014 00:57:07 -0500 Subject: fixedsysexcelsior with unicode --- js/copy.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 js/copy.js (limited to 'js/copy.js') 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 -- cgit v1.2.3-70-g09d2