MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / constructor

Function constructor

packages/core/ui/core/view-base/index.ts:560–570  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

558 public readonly cssPseudoClasses: Set<string>;
559
560 constructor() {
561 super();
562 this._domId = viewIdCounter++;
563 this._style = new Style(new WeakRef(this));
564 this.cssClasses = new Set();
565 this.cssPseudoClasses = new Set();
566
567 this.cssPseudoClasses.add(this.defaultVisualState);
568
569 this.notify({ eventName: ViewBase.createdEvent, type: this.constructor.name, object: this });
570 }
571
572 // Used in Angular. TODO: remove from here
573 /**

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
notifyMethod · 0.65

Tested by

no test coverage detected