Revision: 29601
http://sourceforge.net/p/bibdesk/svn/29601
Author: hofman
Date: 2025-09-18 16:05:28 +0000 (Thu, 18 Sep 2025)
Log Message:
-----------
use let and const instead of var in js
Modified Paths:
--------------
trunk/bibdesk/BDSKWKWebView.m
Modified: trunk/bibdesk/BDSKWKWebView.m
===================================================================
--- trunk/bibdesk/BDSKWKWebView.m 2025-09-17 16:56:05 UTC (rev 29600)
+++ trunk/bibdesk/BDSKWKWebView.m 2025-09-18 16:05:28 UTC (rev 29601)
@@ -53,8 +53,8 @@
"document.addEventListener('selectionchange', changeSelection);\n"
"function hover(){
window.webkit.messageHandlers.mouseDidMoveOverLink.postMessage(this.href); }\n"
"function unhover(){
window.webkit.messageHandlers.mouseDidMoveOverLink.postMessage(null); }\n"
- "var links = document.links;\n"
- "for(var i=0; i<links.length; i++){\n"
+ "const links = document.links;\n"
+ "for(let i = 0; i < links.length; i++){\n"
" links[i].addEventListener('mouseover', hover);\n"
" links[i].addEventListener('mouseout', unhover);\n"
"}";
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit