forked from CIT/Vmeda.Online
		
	
						commit
						9cf19b0694
					
				@ -579,8 +579,6 @@ export class CoreSite {
 | 
				
			|||||||
            return this.ongoingRequests[cacheId].then((response) => {
 | 
					            return this.ongoingRequests[cacheId].then((response) => {
 | 
				
			||||||
                // Clone the data, this may prevent errors if in the callback the object is modified.
 | 
					                // Clone the data, this may prevent errors if in the callback the object is modified.
 | 
				
			||||||
                return this.utils.clone(response);
 | 
					                return this.utils.clone(response);
 | 
				
			||||||
            }).catch((error) => {
 | 
					 | 
				
			||||||
                return Promise.reject(this.utils.clone(error));
 | 
					 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -701,8 +699,6 @@ export class CoreSite {
 | 
				
			|||||||
        return promise.then((response) => {
 | 
					        return promise.then((response) => {
 | 
				
			||||||
            // We pass back a clone of the original object, this may prevent errors if in the callback the object is modified.
 | 
					            // We pass back a clone of the original object, this may prevent errors if in the callback the object is modified.
 | 
				
			||||||
            return this.utils.clone(response);
 | 
					            return this.utils.clone(response);
 | 
				
			||||||
        }).catch((error) => {
 | 
					 | 
				
			||||||
            return Promise.reject(this.utils.clone(error));
 | 
					 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -38,10 +38,12 @@ export class CoreStyleComponent implements OnChanges {
 | 
				
			|||||||
     * Component being changed.
 | 
					     * Component being changed.
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    ngOnChanges(changes: { [name: string]: SimpleChange }): void {
 | 
					    ngOnChanges(changes: { [name: string]: SimpleChange }): void {
 | 
				
			||||||
        const css = this.prefixCSS(this.css, this.prefix);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if (this.element && this.element.nativeElement) {
 | 
					        if (this.element && this.element.nativeElement) {
 | 
				
			||||||
            this.element.nativeElement.innerHTML = '<style>' + css + '</style>';
 | 
					            const style = document.createElement('style');
 | 
				
			||||||
 | 
					            style.innerText = this.prefixCSS(this.css, this.prefix);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            this.element.nativeElement.innerHTML = '';
 | 
				
			||||||
 | 
					            this.element.nativeElement.appendChild(style);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user