fix(animations): ensure web-animations are caught within the Angular zone

Closes #11881
Closes #11712
Closes #12355
Closes #11881
Closes #12546
Closes #12707
Closes #12774
This commit is contained in:
Matias Niemelä
2016-10-31 14:26:41 -07:00
committed by Victor Berchet
parent 6e35d13fbc
commit f80a157b65
5 changed files with 131 additions and 4 deletions

View File

@ -40,4 +40,10 @@ export class MockDomAnimatePlayer implements DomAnimatePlayer {
this._position = val;
}
get position(): number { return this._position; }
addEventListener(eventName: string, handler: (event: any) => any): any {
if (eventName == 'finish') {
this.onfinish = handler;
}
}
dispatchEvent(eventName: string): any {}
}