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

Roo/util/Clipboard.js
roojs-all.js
roojs-core-debug.js
roojs-core.js
roojs-debug.js

index 0dfa697..3c9d80c 100644 (file)
@@ -7,16 +7,16 @@
  **/
 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 8f2dd23..e5313d0 100644 (file)
@@ -600,7 +600,7 @@ if(this.pressClass){this.el.removeClass(this.pressClass);}this.el.on("mouseover"
 },handleMouseUp:function(){clearTimeout(this.timer);this.el.un("mouseover",this.handleMouseReturn);this.el.un("mouseout",this.handleMouseOut);Roo.get(document).un("mouseup",this.handleMouseUp);this.el.removeClass(this.pressClass);this.fireEvent("mouseup",this);
 }});
 // Roo/util/Clipboard.js
-Roo.util.Clipboard={copy:function(A){if(navigator.clipboard&&window.isSecureContext){navigator.clipboard.writeText(A);return;}var ta=document.createElement("textarea");ta.value=A;ta.style.position="fixed";ta.style.left="-999999px";ta.style.top="-999999px";
+Roo.util.Clipboard={write:function(A){if(navigator.clipboard&&window.isSecureContext){navigator.clipboard.writeText(A);return;}var ta=document.createElement("textarea");ta.value=A;ta.style.position="fixed";ta.style.left="-999999px";ta.style.top="-999999px";
 document.body.appendChild(ta);ta.focus();ta.select();document.execCommand('copy');(function(){ta.remove();}).defer(100);}};
 // Roo/KeyNav.js
 Roo.KeyNav=function(el,A){this.el=Roo.get(el);Roo.apply(this,A);if(!this.disabled){this.disabled=true;this.enable();}};Roo.KeyNav.prototype={disabled:false,defaultEventAction:"stopEvent",forceKeyDown:false,prepareEvent:function(e){var k=e.getKey();var h=this.keyToHandler[k];
index c2a789c..6f85f91 100644 (file)
@@ -14514,7 +14514,7 @@ Roo.extend(Roo.util.ClickRepeater, Roo.util.Observable, {
  **/
 Roo.util.Clipboard = {
     
-    copy : function(textToCopy) {
+    write : function(textToCopy) {
         // navigator clipboard api needs a secure context (https)
         if (navigator.clipboard && window.isSecureContext) {
             // navigator clipboard api method'
index 639906d..0d25211 100644 (file)
@@ -600,7 +600,7 @@ if(this.pressClass){this.el.removeClass(this.pressClass);}this.el.on("mouseover"
 },handleMouseUp:function(){clearTimeout(this.timer);this.el.un("mouseover",this.handleMouseReturn);this.el.un("mouseout",this.handleMouseOut);Roo.get(document).un("mouseup",this.handleMouseUp);this.el.removeClass(this.pressClass);this.fireEvent("mouseup",this);
 }});
 // Roo/util/Clipboard.js
-Roo.util.Clipboard={copy:function(A){if(navigator.clipboard&&window.isSecureContext){navigator.clipboard.writeText(A);return;}var ta=document.createElement("textarea");ta.value=A;ta.style.position="fixed";ta.style.left="-999999px";ta.style.top="-999999px";
+Roo.util.Clipboard={write:function(A){if(navigator.clipboard&&window.isSecureContext){navigator.clipboard.writeText(A);return;}var ta=document.createElement("textarea");ta.value=A;ta.style.position="fixed";ta.style.left="-999999px";ta.style.top="-999999px";
 document.body.appendChild(ta);ta.focus();ta.select();document.execCommand('copy');(function(){ta.remove();}).defer(100);}};
 // Roo/KeyNav.js
 Roo.KeyNav=function(el,A){this.el=Roo.get(el);Roo.apply(this,A);if(!this.disabled){this.disabled=true;this.enable();}};Roo.KeyNav.prototype={disabled:false,defaultEventAction:"stopEvent",forceKeyDown:false,prepareEvent:function(e){var k=e.getKey();var h=this.keyToHandler[k];
index daa2189..900363d 100644 (file)
@@ -14514,7 +14514,7 @@ Roo.extend(Roo.util.ClickRepeater, Roo.util.Observable, {
  **/
 Roo.util.Clipboard = {
     
-    copy : function(textToCopy) {
+    write : function(textToCopy) {
         // navigator clipboard api needs a secure context (https)
         if (navigator.clipboard && window.isSecureContext) {
             // navigator clipboard api method'