chore(typing): use types for DOM API

This is possible now that ts2dart special cases these for dart.

Fixes #2770
This commit is contained in:
Alex Eagle
2015-06-30 17:38:33 -07:00
parent c2c361efcf
commit 27e710019c
8 changed files with 4520 additions and 52 deletions

View File

@ -115,8 +115,7 @@ export function main() {
tc.detectChanges();
var newlyInsertedElement = DOM.childNodes(tc.nativeElement)[1];
expect((</*(#2770) HTMLElement*/ any>newlyInsertedElement).id)
.toEqual("new value");
expect((<HTMLElement>newlyInsertedElement).id).toEqual("new value");
async.done();
});
});
@ -210,8 +209,7 @@ export function main() {
tc.detectChanges();
var newlyInsertedElement = DOM.nextSibling(tc.nativeElement);
expect((</*(#2770) HTMLElement*/ any>newlyInsertedElement).id)
.toEqual("new value");
expect((<HTMLElement>newlyInsertedElement).id).toEqual("new value");
async.done();
});