UNPKG

este-library-oldschool

Version:

Library for github.com/steida/este.git

40 lines (35 loc) 1.14 kB
// Generated by github.com/steida/coffee2closure 900.1.18 /** @fileoverview Event class for este.App. Este App event types: - este.App.EventType.LOAD - este.App.EventType.SHOW - este.App.EventType.HIDE - este.App.EventType.TIMEOUT - este.App.EventType.ERROR */ 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.Event'); goog.require('goog.events.Event'); /** @param {este.App.EventType} type @param {este.app.Request} request @param {*=} error @constructor @extends {goog.events.Event} */ este.app.Event = function(type, request, error) { this.request = request; this.error = error; este.app.Event.superClass_.constructor.call(this, type); } extend(este.app.Event, superClass); /** @type {este.app.Request} */ este.app.Event.prototype.request = null; /** @type {*} */ este.app.Event.prototype.error = null;