Skip to content

Commit e0cca45

Browse files
sis0k0hdeshev
authored andcommitted
fix(dom_adapter): update setTitle and getGlobalEventTarget to be
compliant with Angular API Introduced by: angular/angular@b4d444a
1 parent 8ca1f7b commit e0cca45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: nativescript-angular/dom-adapter.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class NativeScriptDomAdapter implements DomAdapter {
145145
defaultDoc(): HTMLDocument { throw new Error("Not implemented!") }
146146
getBoundingClientRect(_el: any /** TODO #9100 */): any /** TODO #9100 */ { throw new Error("Not implemented!") }
147147
getTitle(): string { throw new Error("Not implemented!") }
148-
setTitle(_newTitle: string): any /** TODO #9100 */ { throw new Error("Not implemented!") }
148+
setTitle(_doc: Document, _newTitle: string): any /** TODO #9100 */ { throw new Error("Not implemented!") }
149149
elementMatches(_n: any /** TODO #9100 */, _selector: string): boolean { throw new Error("Not implemented!") }
150150
isTemplateElement(_el: any): boolean { throw new Error("Not implemented!") }
151151
isTextNode(_node: any /** TODO #9100 */): boolean { throw new Error("Not implemented!") }
@@ -161,7 +161,7 @@ export class NativeScriptDomAdapter implements DomAdapter {
161161
/** TODO #9100 */ { throw new Error("Not implemented!") }
162162
supportsDOMEvents(): boolean { throw new Error("Not implemented!") }
163163
supportsNativeShadowDOM(): boolean { throw new Error("Not implemented!") }
164-
getGlobalEventTarget(_target: string): any { throw new Error("Not implemented!") }
164+
getGlobalEventTarget(_doc: Document, _target: string): any { throw new Error("Not implemented!") }
165165
getHistory(): History { throw new Error("Not implemented!") }
166166
getLocation(): Location { throw new Error("Not implemented!") }
167167
getBaseHref(): string { throw new Error("Not implemented!") }

0 commit comments

Comments
 (0)