fix(animations): @internal must use JSDoc tags. (#24928)

This change fixes up several comments that accidentally used the JSDoc
tag @internal in regular block comments (`/*` instead of `/**`).

This prevents a problem with Closure Compiler that balks at `@` tags
occuring in regular block comments, because it assumes they were
intended to be tags for the compiler.

When occuring in `/**` JSDoc, tsickle escapes the tags, so they do not
cause problems.

PR Close #24928
This commit is contained in:
Martin Probst
2018-07-17 15:49:06 +02:00
committed by Matias Niemelä
parent 23dc9a90b0
commit d76531d16e
6 changed files with 9 additions and 9 deletions

View File

@ -124,7 +124,7 @@ export class CssKeyframesPlayer implements AnimationPlayer {
DEFAULT_FILL_MODE, () => this.finish());
}
/* @internal */
/** @internal */
triggerCallback(phaseName: string): void {
const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
methods.forEach(fn => fn());

View File

@ -1514,7 +1514,7 @@ export class TransitionAnimationPlayer implements AnimationPlayer {
getPosition(): number { return this.queued ? 0 : this._player.getPosition(); }
/* @internal */
/** @internal */
triggerCallback(phaseName: string): void {
const p = this._player as any;
if (p.triggerCallback) {

View File

@ -155,7 +155,7 @@ export class WebAnimationsPlayer implements AnimationPlayer {
this.currentSnapshot = styles;
}
/* @internal */
/** @internal */
triggerCallback(phaseName: string): void {
const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
methods.forEach(fn => fn());

View File

@ -140,7 +140,7 @@ export class AnimationGroupPlayer implements AnimationPlayer {
});
}
/* @internal */
/** @internal */
triggerCallback(phaseName: string): void {
const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
methods.forEach(fn => fn());

View File

@ -31,9 +31,9 @@ export interface AnimationPlayer {
parentPlayer: AnimationPlayer|null;
readonly totalTime: number;
beforeDestroy?: () => any;
/* @internal */
/** @internal */
triggerCallback?: (phaseName: string) => void;
/* @internal */
/** @internal */
disabled?: boolean;
}
@ -70,7 +70,7 @@ export class NoopAnimationPlayer implements AnimationPlayer {
this._started = true;
}
/* @internal */
/** @internal */
triggerMicrotask() { scheduleMicroTask(() => this._onFinish()); }
private _onStart() {
@ -96,7 +96,7 @@ export class NoopAnimationPlayer implements AnimationPlayer {
setPosition(p: number): void {}
getPosition(): number { return 0; }
/* @internal */
/** @internal */
triggerCallback(phaseName: string): void {
const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
methods.forEach(fn => fn());