From 349f391075e22788def62fa04228aab1a237ecf9 Mon Sep 17 00:00:00 2001 From: Neil Jenkins Date: Mon, 14 Mar 2016 15:21:33 +1100 Subject: [PATCH] Fix typo in cut/copy handlers --- source/Clipboard.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/Clipboard.js b/source/Clipboard.js index 5cf4332..2b29208 100644 --- a/source/Clipboard.js +++ b/source/Clipboard.js @@ -15,7 +15,8 @@ var onCut = function ( event ) { moveRangeBoundariesUpTree( range, body ); node.appendChild( deleteContentsOfRange( range, body ) ); clipboardData.setData( 'text/html', node.innerHTML ); - clipboard.setData( 'text/plain', node.innerText || node.textContent ); + clipboardData.setData( 'text/plain', + node.innerText || node.textContent ); event.preventDefault(); } else { setTimeout( function () { @@ -40,7 +41,8 @@ var onCopy = function ( event ) { if ( !isEdge && clipboardData ) { node.appendChild( range.cloneContents() ); clipboardData.setData( 'text/html', node.innerHTML ); - clipboard.setData( 'text/plain', node.innerText || node.textContent ); + clipboardData.setData( 'text/plain', + node.innerText || node.textContent ); event.preventDefault(); } };