UNPKG

@robotlegsjs/phaser

Version:

RobotlegsJS integration with Phaser Scene Manager

35 lines 1.59 kB
"use strict"; // ------------------------------------------------------------------------------ // Copyright (c) 2017-present, RobotlegsJS. All Rights Reserved. // // NOTICE: You are permitted to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // ------------------------------------------------------------------------------ Object.defineProperty(exports, "__esModule", { value: true }); exports.ViewMediatorHandler = void 0; var tslib_1 = require("tslib"); var AbstractMediatorHandler_1 = require("./AbstractMediatorHandler"); /** * @private */ var ViewMediatorHandler = /** @class */ (function (_super) { tslib_1.__extends(ViewMediatorHandler, _super); function ViewMediatorHandler() { return _super !== null && _super.apply(this, arguments) || this; } /*============================================================================*/ /* Public Functions */ /*============================================================================*/ /** * @private */ ViewMediatorHandler.prototype.handleView = function (view, type) { var interestedMappings = this.getInterestedMappingsFor(view, type); if (interestedMappings) { this._factory.createMediators(view, type, interestedMappings); } }; return ViewMediatorHandler; }(AbstractMediatorHandler_1.AbstractMediatorHandler)); exports.ViewMediatorHandler = ViewMediatorHandler; //# sourceMappingURL=ViewMediatorHandler.js.map