Fossil SCM

Minor internal doc updates. No code changes.

stephan 2025-09-02 12:52 trunk
Commit 65448438e85fa092587b6859b7e085922cef7ecdf15116a30427d7c28c53005f
1 file changed +4 -3
--- src/fossil.dom.js
+++ src/fossil.dom.js
@@ -248,11 +248,11 @@
248248
const e = this.create(childType);
249249
if(parent) parent.appendChild(e);
250250
return e;
251251
};
252252
};
253
-
253
+
254254
dom.table = dom.createElemFactory('table');
255255
dom.thead = dom.createElemFactoryWithOptionalParent('thead');
256256
dom.tbody = dom.createElemFactoryWithOptionalParent('tbody');
257257
dom.tfoot = dom.createElemFactoryWithOptionalParent('tfoot');
258258
dom.tr = dom.createElemFactoryWithOptionalParent('tr');
@@ -381,12 +381,12 @@
381381
const domAddRemoveClass = function f(action,e){
382382
if(!f.rxSPlus){
383383
f.rxSPlus = /\s+/;
384384
f.applyAction = function(e,a,v){
385385
if(!e || !v
386
- /*silently skip empty strings/flasy
387
- values, for user convenience*/) return;
386
+ /*silently skip empty strings/falsy
387
+ values, for usage convenience*/) return;
388388
else if(e.forEach){
389389
e.forEach((E)=>E.classList[a](v));
390390
}else{
391391
e.classList[a](v);
392392
}
@@ -584,10 +584,11 @@
584584
}
585585
}
586586
return e;
587587
};
588588
589
+ /* Impl for dom.enable() and dom.disable(). */
589590
const enableDisable = function f(enable){
590591
var i = 1, n = arguments.length;
591592
for( ; i < n; ++i ){
592593
let e = arguments[i];
593594
if(e.forEach){
594595
--- src/fossil.dom.js
+++ src/fossil.dom.js
@@ -248,11 +248,11 @@
248 const e = this.create(childType);
249 if(parent) parent.appendChild(e);
250 return e;
251 };
252 };
253
254 dom.table = dom.createElemFactory('table');
255 dom.thead = dom.createElemFactoryWithOptionalParent('thead');
256 dom.tbody = dom.createElemFactoryWithOptionalParent('tbody');
257 dom.tfoot = dom.createElemFactoryWithOptionalParent('tfoot');
258 dom.tr = dom.createElemFactoryWithOptionalParent('tr');
@@ -381,12 +381,12 @@
381 const domAddRemoveClass = function f(action,e){
382 if(!f.rxSPlus){
383 f.rxSPlus = /\s+/;
384 f.applyAction = function(e,a,v){
385 if(!e || !v
386 /*silently skip empty strings/flasy
387 values, for user convenience*/) return;
388 else if(e.forEach){
389 e.forEach((E)=>E.classList[a](v));
390 }else{
391 e.classList[a](v);
392 }
@@ -584,10 +584,11 @@
584 }
585 }
586 return e;
587 };
588
 
589 const enableDisable = function f(enable){
590 var i = 1, n = arguments.length;
591 for( ; i < n; ++i ){
592 let e = arguments[i];
593 if(e.forEach){
594
--- src/fossil.dom.js
+++ src/fossil.dom.js
@@ -248,11 +248,11 @@
248 const e = this.create(childType);
249 if(parent) parent.appendChild(e);
250 return e;
251 };
252 };
253
254 dom.table = dom.createElemFactory('table');
255 dom.thead = dom.createElemFactoryWithOptionalParent('thead');
256 dom.tbody = dom.createElemFactoryWithOptionalParent('tbody');
257 dom.tfoot = dom.createElemFactoryWithOptionalParent('tfoot');
258 dom.tr = dom.createElemFactoryWithOptionalParent('tr');
@@ -381,12 +381,12 @@
381 const domAddRemoveClass = function f(action,e){
382 if(!f.rxSPlus){
383 f.rxSPlus = /\s+/;
384 f.applyAction = function(e,a,v){
385 if(!e || !v
386 /*silently skip empty strings/falsy
387 values, for usage convenience*/) return;
388 else if(e.forEach){
389 e.forEach((E)=>E.classList[a](v));
390 }else{
391 e.classList[a](v);
392 }
@@ -584,10 +584,11 @@
584 }
585 }
586 return e;
587 };
588
589 /* Impl for dom.enable() and dom.disable(). */
590 const enableDisable = function f(enable){
591 var i = 1, n = arguments.length;
592 for( ; i < n; ++i ){
593 let e = arguments[i];
594 if(e.forEach){
595

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button