MCPcopy Index your code
hub / github.com/jabbany/CommentCoreLibrary / init

Method init

src/core/Comment.ts:515–522  ·  view source on GitHub ↗
(recycle:IComment = null)

Source from the content-addressed store, hash-verified

513 }
514
515 public init(recycle:IComment = null):void {
516 super.init(recycle);
517 this.x = this.parent.width;
518 if (this.parent.options.scroll.opacity < 1) {
519 this.alpha = this._alpha;
520 }
521 this.absolute = true;
522 }
523
524 public update():void {
525 this.x = (this.ttl / this.dur) * (this.parent.width + this.width) - this.width;

Callers 1

Calls 1

initMethod · 0.45

Tested by

no test coverage detected