Fossil SCM
Minor internal doc updates. No code changes.
Commit
65448438e85fa092587b6859b7e085922cef7ecdf15116a30427d7c28c53005f
Parent
accce714ccd9c9c…
1 file changed
+4
-3
+4
-3
| --- src/fossil.dom.js | ||
| +++ src/fossil.dom.js | ||
| @@ -248,11 +248,11 @@ | ||
| 248 | 248 | const e = this.create(childType); |
| 249 | 249 | if(parent) parent.appendChild(e); |
| 250 | 250 | return e; |
| 251 | 251 | }; |
| 252 | 252 | }; |
| 253 | - | |
| 253 | + | |
| 254 | 254 | dom.table = dom.createElemFactory('table'); |
| 255 | 255 | dom.thead = dom.createElemFactoryWithOptionalParent('thead'); |
| 256 | 256 | dom.tbody = dom.createElemFactoryWithOptionalParent('tbody'); |
| 257 | 257 | dom.tfoot = dom.createElemFactoryWithOptionalParent('tfoot'); |
| 258 | 258 | dom.tr = dom.createElemFactoryWithOptionalParent('tr'); |
| @@ -381,12 +381,12 @@ | ||
| 381 | 381 | const domAddRemoveClass = function f(action,e){ |
| 382 | 382 | if(!f.rxSPlus){ |
| 383 | 383 | f.rxSPlus = /\s+/; |
| 384 | 384 | f.applyAction = function(e,a,v){ |
| 385 | 385 | 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; | |
| 388 | 388 | else if(e.forEach){ |
| 389 | 389 | e.forEach((E)=>E.classList[a](v)); |
| 390 | 390 | }else{ |
| 391 | 391 | e.classList[a](v); |
| 392 | 392 | } |
| @@ -584,10 +584,11 @@ | ||
| 584 | 584 | } |
| 585 | 585 | } |
| 586 | 586 | return e; |
| 587 | 587 | }; |
| 588 | 588 | |
| 589 | + /* Impl for dom.enable() and dom.disable(). */ | |
| 589 | 590 | const enableDisable = function f(enable){ |
| 590 | 591 | var i = 1, n = arguments.length; |
| 591 | 592 | for( ; i < n; ++i ){ |
| 592 | 593 | let e = arguments[i]; |
| 593 | 594 | if(e.forEach){ |
| 594 | 595 |
| --- 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 |