1 | "use strict";
|
2 | var async_1 = require('../../facade/async');
|
3 | var lang_1 = require('../../facade/lang');
|
4 | var instruction_1 = require('../../instruction');
|
5 | var SyncRouteHandler = (function () {
|
6 | function SyncRouteHandler(componentType, data) {
|
7 | this.componentType = componentType;
|
8 |
|
9 | this._resolvedComponent = null;
|
10 | this._resolvedComponent = async_1.PromiseWrapper.resolve(componentType);
|
11 | this.data = lang_1.isPresent(data) ? new instruction_1.RouteData(data) : instruction_1.BLANK_ROUTE_DATA;
|
12 | }
|
13 | SyncRouteHandler.prototype.resolveComponentType = function () { return this._resolvedComponent; };
|
14 | return SyncRouteHandler;
|
15 | }());
|
16 | exports.SyncRouteHandler = SyncRouteHandler;
|
17 |
|
\ | No newline at end of file |