11import { ElementSchemaRegistry } from '@angular/compiler' ;
2- import { Sanitizer , SchemaMetadata } from '@angular/core' ;
2+ import { SchemaMetadata } from '@angular/core' ;
33import { Parse5DomAdapter } from "./parse5_adapter" ;
44import { setRootDomAdapter } from './private_import_platform-browser' ;
5- import { rendererLog , rendererError } from "./trace" ;
5+ import { rendererLog } from "./trace" ;
66import { print } from "./lang-facade" ;
77
88export enum SecurityContext {
@@ -15,11 +15,11 @@ export enum SecurityContext {
1515}
1616
1717export class NativeScriptElementSchemaRegistry extends ElementSchemaRegistry {
18- hasProperty ( tagName : string , propName : string ) : boolean {
18+ hasProperty ( _tagName : string , _propName : string ) : boolean {
1919 return true ;
2020 }
2121
22- hasElement ( tagName : string , schemaMetas : SchemaMetadata [ ] ) : boolean {
22+ hasElement ( _tagName : string , _schemaMetas : SchemaMetadata [ ] ) : boolean {
2323 return true ;
2424 }
2525
@@ -32,15 +32,15 @@ export class NativeScriptElementSchemaRegistry extends ElementSchemaRegistry {
3232 return 'ng-component' ;
3333 }
3434
35- securityContext ( tagName : string , propName : string ) : any {
35+ securityContext ( _tagName : string , _propName : string ) : any {
3636 return SecurityContext . NONE ;
3737 }
3838
39- validateProperty ( name : string ) : { error : boolean , msg ?: string } {
39+ validateProperty ( _name : string ) : { error : boolean , msg ?: string } {
4040 return { error : false } ;
4141 }
4242
43- validateAttribute ( name : string ) : { error : boolean , msg ?: string } {
43+ validateAttribute ( _name : string ) : { error : boolean , msg ?: string } {
4444 return { error : false } ;
4545 }
4646
@@ -52,7 +52,7 @@ export class NativeScriptElementSchemaRegistry extends ElementSchemaRegistry {
5252 return propName ;
5353 }
5454
55- normalizeAnimationStyleValue ( camelCaseProp : string , userProvidedProp : string , val : string | number ) :
55+ normalizeAnimationStyleValue ( _camelCaseProp : string , _userProvidedProp : string , val : string | number ) :
5656 { error : string , value : string } {
5757 return { error : null , value : val . toString ( ) } ;
5858 }
@@ -64,7 +64,7 @@ export class NativeScriptDomAdapter extends Parse5DomAdapter {
6464 setRootDomAdapter ( new NativeScriptDomAdapter ( ) ) ;
6565 }
6666
67- hasProperty ( element , name : string ) {
67+ hasProperty ( _element : any , _name : string ) {
6868 //TODO: actually check if the property exists.
6969 return true ;
7070 }
0 commit comments