este-library-oldschool
Version:
Library for github.com/steida/este.git
28 lines (26 loc) • 933 B
JavaScript
// Generated by github.com/steida/coffee2closure 900.1.18
/**
@fileoverview este.labs.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.labs.app.Route');
goog.require('este.labs.Route');
/**
@param {string} path
@param {este.labs.App} app
@constructor
@extends {este.labs.Route}
*/
este.labs.app.Route = function(path, app) {
this.app = app;
este.labs.app.Route.superClass_.constructor.call(this, path);
}
extend(este.labs.app.Route, superClass);
/**
@param {(Object|Array)} params
@return {string}
*/
este.labs.app.Route.prototype.redirect = function(params) {
return this.app.load(this.url(params));
};