Fossil SCM
Added a "window." reference to a global variable in fossil.dom.js to make explicit where the variable is coming from. All the surrounding code does this, and the fix quiets a complaint from GCC.
Commit
31af8053486909582b1b8fd821ff2f2da6320c0d0b6d93a8de9e65c06ce3cdf7
Parent
37409e7dbeddf00…
1 file changed
+1
-1
+1
-1
| --- src/fossil.dom.js | ||
| +++ src/fossil.dom.js | ||
| @@ -521,11 +521,11 @@ | ||
| 521 | 521 | Attempts to copy the given text to the system clipboard. Returns |
| 522 | 522 | true if it succeeds, else false. |
| 523 | 523 | */ |
| 524 | 524 | dom.copyTextToClipboard = function(text){ |
| 525 | 525 | if( window.clipboardData && window.clipboardData.setData ){ |
| 526 | - clipboardData.setData('Text',text); | |
| 526 | + window.clipboardData.setData('Text',text); | |
| 527 | 527 | return true; |
| 528 | 528 | }else{ |
| 529 | 529 | const x = document.createElement("textarea"); |
| 530 | 530 | x.style.position = 'fixed'; |
| 531 | 531 | x.value = text; |
| 532 | 532 |
| --- src/fossil.dom.js | |
| +++ src/fossil.dom.js | |
| @@ -521,11 +521,11 @@ | |
| 521 | Attempts to copy the given text to the system clipboard. Returns |
| 522 | true if it succeeds, else false. |
| 523 | */ |
| 524 | dom.copyTextToClipboard = function(text){ |
| 525 | if( window.clipboardData && window.clipboardData.setData ){ |
| 526 | clipboardData.setData('Text',text); |
| 527 | return true; |
| 528 | }else{ |
| 529 | const x = document.createElement("textarea"); |
| 530 | x.style.position = 'fixed'; |
| 531 | x.value = text; |
| 532 |
| --- src/fossil.dom.js | |
| +++ src/fossil.dom.js | |
| @@ -521,11 +521,11 @@ | |
| 521 | Attempts to copy the given text to the system clipboard. Returns |
| 522 | true if it succeeds, else false. |
| 523 | */ |
| 524 | dom.copyTextToClipboard = function(text){ |
| 525 | if( window.clipboardData && window.clipboardData.setData ){ |
| 526 | window.clipboardData.setData('Text',text); |
| 527 | return true; |
| 528 | }else{ |
| 529 | const x = document.createElement("textarea"); |
| 530 | x.style.position = 'fixed'; |
| 531 | x.value = text; |
| 532 |