How to use the @robotlegsjs/core.instanceOfType function in @robotlegsjs/core

To help you get started, we’ve selected a few @robotlegsjs/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RobotlegsJS / RobotlegsJS-Pixi / src / robotlegs / bender / bundles / pixi / PixiBundle.ts View on Github external
public extend(context: IContext): void {
        this._context = context;
        this._logger = context.getLogger(this);

        this._context.install(
            ContextViewExtension,
            ViewManagerExtension,
            StageObserverExtension,
            MediatorMapExtension,
            StageCrawlerExtension
        );

        this._context.addConfigHandler(instanceOfType(ContextView), this.handleContextView.bind(this));
        this._context.whenInitializing(this.whenInitializing.bind(this));
        this._context.afterDestroying(this.afterDestroying.bind(this));
    }
github RobotlegsJS / RobotlegsJS-Pixi / src / robotlegs / bender / extensions / contextView / StageSyncExtension.ts View on Github external
public extend(context: IContext): void {
        this._context = context;
        this._logger = context.getLogger(this);
        this._context.addConfigHandler(
            instanceOfType(ContextView),
            this.handleContextView.bind(this)
        );
    }
github RobotlegsJS / RobotlegsJS-Pixi / src / robotlegs / bender / extensions / contextView / ContextViewExtension.ts View on Github external
public extend(context: IContext): void {
        this._injector = context.injector;
        this._logger = context.getLogger(this);
        context.beforeInitializing(this.beforeInitializing.bind(this));
        context.addConfigHandler(instanceOfType(ContextView), this.handleContextView.bind(this));
    }

@robotlegsjs/core

An architecture-based IoC framework for JavaScript/TypeScript

MIT
Latest version published 2 years ago

Package Health Score

49 / 100
Full package analysis