Fossil SCM
Fixed a recursion bug in fossil.dom.append(e,array) (currently unused, but will be soon).
Commit
2018954b3f122599cd91f100fc4bd82aa9c1d1019f730c9c55cfc2e8e9443e43
Parent
ea6365a8df6ab5f…
1 file changed
+4
-2
+4
-2
| --- src/fossil.dom.js | ||
| +++ src/fossil.dom.js | ||
| @@ -218,14 +218,16 @@ | ||
| 218 | 218 | const a = argsToArray(arguments); |
| 219 | 219 | a.shift(); |
| 220 | 220 | for(let i in a) { |
| 221 | 221 | var e = a[i]; |
| 222 | 222 | if(isArray(e) || e.forEach){ |
| 223 | - e.forEach((x)=>f.call(this, parent,e)); | |
| 223 | + e.forEach((x)=>f.call(this, parent,x)); | |
| 224 | 224 | continue; |
| 225 | 225 | } |
| 226 | - if('string'===typeof e || 'number'===typeof e) e = this.text(e); | |
| 226 | + if('string'===typeof e | |
| 227 | + || 'number'===typeof e | |
| 228 | + || 'boolean'===typeof e) e = this.text(e); | |
| 227 | 229 | parent.appendChild(e); |
| 228 | 230 | } |
| 229 | 231 | return parent; |
| 230 | 232 | }; |
| 231 | 233 | |
| 232 | 234 |
| --- src/fossil.dom.js | |
| +++ src/fossil.dom.js | |
| @@ -218,14 +218,16 @@ | |
| 218 | const a = argsToArray(arguments); |
| 219 | a.shift(); |
| 220 | for(let i in a) { |
| 221 | var e = a[i]; |
| 222 | if(isArray(e) || e.forEach){ |
| 223 | e.forEach((x)=>f.call(this, parent,e)); |
| 224 | continue; |
| 225 | } |
| 226 | if('string'===typeof e || 'number'===typeof e) e = this.text(e); |
| 227 | parent.appendChild(e); |
| 228 | } |
| 229 | return parent; |
| 230 | }; |
| 231 | |
| 232 |
| --- src/fossil.dom.js | |
| +++ src/fossil.dom.js | |
| @@ -218,14 +218,16 @@ | |
| 218 | const a = argsToArray(arguments); |
| 219 | a.shift(); |
| 220 | for(let i in a) { |
| 221 | var e = a[i]; |
| 222 | if(isArray(e) || e.forEach){ |
| 223 | e.forEach((x)=>f.call(this, parent,x)); |
| 224 | continue; |
| 225 | } |
| 226 | if('string'===typeof e |
| 227 | || 'number'===typeof e |
| 228 | || 'boolean'===typeof e) e = this.text(e); |
| 229 | parent.appendChild(e); |
| 230 | } |
| 231 | return parent; |
| 232 | }; |
| 233 | |
| 234 |