roojs-core.js
authorAlan Knowles <alan@roojs.com>
Tue, 8 Jun 2021 08:45:54 +0000 (16:45 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 8 Jun 2021 08:45:54 +0000 (16:45 +0800)
roojs-core-debug.js
roojs-all.js
roojs-debug.js

roojs-core-debug.js
roojs-debug.js

index 6f85f91..62baa53 100644 (file)
@@ -14514,16 +14514,16 @@ Roo.extend(Roo.util.ClickRepeater, Roo.util.Observable, {
  **/
 Roo.util.Clipboard = {
     
-    write : function(textToCopy) {
+    write : function(text) {
         // navigator clipboard api needs a secure context (https)
         if (navigator.clipboard && window.isSecureContext) {
             // navigator clipboard api method'
-            navigator.clipboard.writeText(textToCopy);
+            navigator.clipboard.writeText(text);
             return ;
         } 
         // text area method
         var ta = document.createElement("textarea");
-        ta.value = textToCopy;
+        ta.value = text;
         // make the textarea out of viewport
         ta.style.position = "fixed";
         ta.style.left = "-999999px";
index 900363d..f527ba6 100644 (file)
@@ -14514,16 +14514,16 @@ Roo.extend(Roo.util.ClickRepeater, Roo.util.Observable, {
  **/
 Roo.util.Clipboard = {
     
-    write : function(textToCopy) {
+    write : function(text) {
         // navigator clipboard api needs a secure context (https)
         if (navigator.clipboard && window.isSecureContext) {
             // navigator clipboard api method'
-            navigator.clipboard.writeText(textToCopy);
+            navigator.clipboard.writeText(text);
             return ;
         } 
         // text area method
         var ta = document.createElement("textarea");
-        ta.value = textToCopy;
+        ta.value = text;
         // make the textarea out of viewport
         ta.style.position = "fixed";
         ta.style.left = "-999999px";