refactor(core): Removed readonly getters and changed to readonly (#19842)

variables

PR Close #19842
This commit is contained in:
Yuan Gao
2017-09-15 16:12:02 -07:00
committed by Jason Aden
parent c9ad529afc
commit e544742156
8 changed files with 37 additions and 24 deletions

View File

@ -1389,9 +1389,9 @@ export class TransitionAnimationPlayer implements AnimationPlayer {
public markedForDestroy: boolean = false;
constructor(public namespaceId: string, public triggerName: string, public element: any) {}
readonly queued: boolean = true;
get queued() { return this._containsRealPlayer == false; }
constructor(public namespaceId: string, public triggerName: string, public element: any) {}
setRealPlayer(player: AnimationPlayer) {
if (this._containsRealPlayer) return;
@ -1403,6 +1403,7 @@ export class TransitionAnimationPlayer implements AnimationPlayer {
});
this._queuedCallbacks = {};
this._containsRealPlayer = true;
(this as{queued: boolean}).queued = false;
}
getRealPlayer() { return this._player; }