Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PropertyHandler

Index

Properties

Private eventBus

eventBus: EventBus = new EventBus()

Private propertydb

propertydb: PropertyDatabase = new PropertyDatabase()

Methods

add_mutator

  • add_mutator(mutator: IMutator): PropertyDecorator
  • Returns a PropertyDecorator for for adding a mutator to the decorated property.

    Parameters

    Returns PropertyDecorator

Private add_subscription

Private apply_subscriptions

  • apply_subscriptions(instance: IInstance): void

Private make_getter

  • make_getter(name: string): function
  • Returns a getter function to use with the property of the given name.

    Parameters

    • name: string

    Returns function

      • (): any
      • Returns any

Private make_setter

  • make_setter(name: string): function
  • Returns a setter function for a property with the given name.

    Parameters

    • name: string

    Returns function

      • (value: any): void
      • Parameters

        • value: any

        Returns void

Private manageproperty

  • manageproperty(prototype: any, name: string): void
  • Creates a property with the given name on the given prototype with a getter and setter to manage mutations and event subscriptions.

    Parameters

    • prototype: any
    • name: string

    Returns void

on_change

Generated using TypeDoc