import * as $ from "jquery"; import { Base } from "../Base"; import { Container } from "../Container"; import { viewport } from "../viewport/Viewport"; export namespace app { /** * Application Class */ export class Application extends Base { /** * Viewport Object */ private _viewport: viewport.Viewport; /** * MainView */ protected MainView: Container; /** * Constructor */ constructor() { super(); } /** * Launch */ public Launch() { // Get scope for Document Ready Callback. let scope = this; // Instantiate Lixer.viewport.Viewport. var vp = this._viewport = new viewport.Viewport(this.MainView); // Add Document ready Listener $(function () { scope._onReady.apply(scope); }); } /** * _onReady */ private _onReady() { // Call "OnLaunch" this.OnLaunch(); } /** * OnLaunch * * For override in User "Application" class. */ public OnLaunch() { } } } // EOF