How to use the @robotlegsjs/core.Event 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 / patch / pixi-patch.ts View on Github external
function emitRemovedEvent(stage: PIXI.Container, target: PIXI.DisplayObject): void {
    target.dispatchEvent(new Event("removedFromStage", true));

    if (target instanceof PIXI.Container) {
        target.children.forEach(child => emitRemovedEvent(stage, child));
    }
}
github RobotlegsJS / RobotlegsJS-Pixi / src / robotlegs / bender / bundles / pixi / patch / pixi-patch.ts View on Github external
function emitAddedEvent(stage: PIXI.Container, target: PIXI.DisplayObject): void {
    target.dispatchEvent(new Event("addedToStage", true));

    if (target instanceof PIXI.Container) {
        target.children.forEach(child => emitAddedEvent(stage, child));
    }
}

@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