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

@ -20,7 +20,7 @@ export class EmulatedUnscopedShadowDomStrategy extends ShadowDomStrategy {
hasNativeContentElement(): boolean { return false; }
prepareShadowRoot(el): /*(#2770) Node*/ any { return el; }
prepareShadowRoot(el): Node { return el; }
constructLightDom(lightDomView: viewModule.DomView, el): LightDom {
return new LightDom(lightDomView, el);

View File

@ -10,5 +10,5 @@ import {ShadowDomStrategy} from './shadow_dom_strategy';
*/
@Injectable()
export class NativeShadowDomStrategy extends ShadowDomStrategy {
prepareShadowRoot(el): /*(#2770) Node*/ any { return DOM.createShadowRoot(el); }
prepareShadowRoot(el): Node { return DOM.createShadowRoot(el); }
}