fix(common): throw an error if trackBy is not a function (#13420)
* fix(common): throw an error if trackBy is not a function Closes #13388 * refactor(platform-browser): disable no-console rule in DomAdapter
This commit is contained in:

committed by
Chuck Jazdzewski

parent
383adc9ad9
commit
fcd116fdc0
@ -67,7 +67,7 @@ const _chromeNumKeyPadMap = {
|
||||
* @security Tread carefully! Interacting with the DOM directly is dangerous and
|
||||
* can introduce XSS risks.
|
||||
*/
|
||||
/* tslint:disable:requireParameterType */
|
||||
/* tslint:disable:requireParameterType no-console */
|
||||
export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
parse(templateHtml: string) { throw new Error('parse not implemented'); }
|
||||
static makeCurrent() { setRootDomAdapter(new BrowserDomAdapter()); }
|
||||
@ -90,7 +90,6 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
|
||||
log(error: string): void {
|
||||
if (window.console) {
|
||||
// tslint:disable-next-line:no-console
|
||||
window.console.log && window.console.log(error);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user