Documentation
    Preparing search index...

    Class ReferenceCounter

    Simple event emitter class that allows adding event listeners and emitting events. Events can be emitted by accessing the protected emitter field.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    emitter: Emitter<ReferenceCounterEvents> = ...

    An event emitter for handling custom events.

    Methods

    • Adds a reference to the counter. If the reference was not yet accounted for, increases the counter by one and emits a "count-changed" event. Does nothing if the reference was already previously added.

      Parameters

      • reference: object

      Returns void