UNPKG

este-library-oldschool

Version:

Library for github.com/steida/este.git

42 lines (38 loc) 1.26 kB
// Generated by github.com/steida/coffee2closure 900.1.18 /** @fileoverview este.app.Route. */ var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.superClass_ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; goog.provide('este.app.Route'); goog.require('este.Base'); /** @param {string} path @param {este.app.Presenter} presenter @constructor @extends {este.Base} */ este.app.Route = function(path, presenter) { this.path = path; this.presenter = presenter; este.app.Route.superClass_.constructor.call(this); } extend(este.app.Route, superClass); /** Path has to start with '/' prefix. If HTML5 pustState is not supported, then url will be prefixed with hash ('#/'). Various url definitions: este/router/route_test.coffee @type {string} */ este.app.Route.prototype.path = ''; /** @type {este.app.Presenter} */ este.app.Route.prototype.presenter = null; /** @override */ este.app.Route.prototype.disposeInternal = function() { this.presenter.dispose(); este.app.Route.superClass_.disposeInternal.call(this); };