| @@ -19,7 +19,7 | |||
| 
             | 
        19 | 19 | "eslint": "6.8.0", | 
| 
             | 
        20 | 20 | "requirejs": "2.3.6", | 
| 
             | 
        21 | 21 | "tslint": "^6.1.3", | 
| 
             | 
        22 | 
            
                             "typescript": "4. | 
    |
| 
             | 
        22 | "typescript": "4.2.4", | |
| 
             | 
        23 | 23 | "yaml": "~1.7.2" | 
| 
             | 
        24 | 24 | }, | 
| 
             | 
        25 | 25 | "peerDependencies": { | 
| @@ -1446,9 +1446,9 | |||
| 
             | 
        1446 | 1446 | } | 
| 
             | 
        1447 | 1447 | }, | 
| 
             | 
        1448 | 1448 | "node_modules/typescript": { | 
| 
             | 
        1449 | 
            
                         "version": "4. | 
    |
| 
             | 
        1450 | 
            
                         "resolved": "https://registry.npmjs.org/typescript/-/typescript-4. | 
    |
| 
             | 
        1451 | "integrity": "sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==", | |
| 
             | 
        1449 | "version": "4.2.4", | |
| 
             | 
        1450 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz", | |
| 
             | 
        1451 | "integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==", | |
| 
             | 
        1452 | 1452 | "dev": true, | 
| 
             | 
        1453 | 1453 | "bin": { | 
| 
             | 
        1454 | 1454 | "tsc": "bin/tsc", | 
| @@ -2681,9 +2681,9 | |||
| 
             | 
        2681 | 2681 | "dev": true | 
| 
             | 
        2682 | 2682 | }, | 
| 
             | 
        2683 | 2683 | "typescript": { | 
| 
             | 
        2684 | 
            
                         "version": "4. | 
    |
| 
             | 
        2685 | 
            
                         "resolved": "https://registry.npmjs.org/typescript/-/typescript-4. | 
    |
| 
             | 
        2686 | "integrity": "sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==", | |
| 
             | 
        2684 | "version": "4.2.4", | |
| 
             | 
        2685 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz", | |
| 
             | 
        2686 | "integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==", | |
| 
             | 
        2687 | 2687 | "dev": true | 
| 
             | 
        2688 | 2688 | }, | 
| 
             | 
        2689 | 2689 | "uri-js": { | 
| @@ -17,9 +17,7 export class FunctionRendition extends R | |||
| 
             | 
        17 | 17 | const _attrs: any = attrs || {}; | 
| 
             | 
        18 | 18 | const _children = children.map(x => this.getItemDom(x)); | 
| 
             | 
        19 | 19 | this._node = this.getItemDom( | 
| 
             | 
        20 | this._component.length === 2 ? | |
| 
             | 
        21 | this._component.call(null, { ..._attrs }, _children) : | |
| 
             | 
        22 | this._component.call(null, { ..._attrs, children: _children }) | |
| 
             | 
        20 | this._component.call(null, { ..._attrs, children: _children }) | |
| 
             | 
        23 | 21 | ); | 
| 
             | 
        24 | 22 | } | 
| 
             | 
        25 | 23 | |
| @@ -31,7 +31,7 export abstract class RenditionBase<TNod | |||
| 
             | 
        31 | 31 | |
| 
             | 
        32 | 32 | protected getItemDom(v: any) { | 
| 
             | 
        33 | 33 | const tv = typeof v; | 
| 
             | 
        34 | ||
| 
             | 
        34 | ||
| 
             | 
        35 | 35 | if (tv === "string" || tv === "number" || v instanceof RegExp || v instanceof Date) { | 
| 
             | 
        36 | 36 | // primitive types converted to the text nodes | 
| 
             | 
        37 | 37 | return document.createTextNode(v.toString()); | 
| @@ -86,7 +86,7 export abstract class RenditionBase<TNod | |||
| 
             | 
        86 | 86 | |
| 
             | 
        87 | 87 | const collect = (collection: HTMLCollection) => { | 
| 
             | 
        88 | 88 | const items = []; | 
| 
             | 
        89 | 
            
                         for (let i = 0, n =  | 
    |
| 
             | 
        89 | for (let i = 0, n = collection.length; i < n; i++) { | |
| 
             | 
        90 | 90 | items.push(collection[i]); | 
| 
             | 
        91 | 91 | } | 
| 
             | 
        92 | 92 | return items; | 
| @@ -103,11 +103,11 export abstract class RenditionBase<TNod | |||
| 
             | 
        103 | 103 | } | 
| 
             | 
        104 | 104 | |
| 
             | 
        105 | 105 | const startupPending = isDocumentFragmentNode(domNode) ? collect(domNode.children) : [domNode] | 
| 
             | 
        106 | ||
| 
             | 
        106 | ||
| 
             | 
        107 | 107 | dom.place(domNode, refNode, position); | 
| 
             | 
        108 | 108 | |
| 
             | 
        109 | 109 | startupPending.forEach(startup); | 
| 
             | 
        110 | ||
| 
             | 
        110 | ||
| 
             | 
        111 | 111 | } | 
| 
             | 
        112 | 112 | |
| 
             | 
        113 | 113 | protected abstract _create(attrs: object, children: any[]): void; | 
        
        General Comments 0
    
    
  
  
                      You need to be logged in to leave comments.
                      Login now
                    
                